MySQL Database connection issues

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
NancyM
Pro Scripter
Posts: 66
Joined: Mon Jul 18, 2016 7:01 pm

MySQL Database connection issues

Post by NancyM » Mon Jul 18, 2016 7:17 pm

I'm brand new to Macro Scheduler, so bear with me. However, I've been a programmer for a lot of decades.

I'm trying to connect to my MySQL database. I downloaded and installed MySQL ODBC/Connector 5.3.6 32 bit. I'm running Windows 7 64-bit. I can connect to the database through the ODBC admin using that string, so I think the connection string is okay.

I can see the 32 bit connector using the 32bit ODBC admin. (C:\windows\SysWOW64\odbcad32.exe) however I can't seem to connect to it via MS.

Here's my connection string:

Code: Select all

    let>str=Driver={MySQL ODBC 5.3 Driver};Server=192.168.2.120;Port=3307;Database=integrations;Uid=obfuscated;Pwd=xyzzy;
    DBConnect>str,dbh
    Let>SQL=SELECT encompass_server_url as url, encompass_userid as user, encompass_password as password FROM clients where LOWER(shortname) = "evolve"
    DBQuery>dbh,SQL,c,numRecs,numFields

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: MySQL Database connection issues

Post by Marcus Tettmar » Tue Jul 19, 2016 10:26 am

I think the driver name is meant to be:

{MySQL ODBC 5.3 ANSI Driver}

Or

{MySQL ODBC 5.3 Unicode Driver}

E.g.:

Driver={MySQL ODBC 5.3 ANSI Driver};SERVER=127.0.0.1;PORT=3306;DATABASE=mydatabase;USER=myuser;PASSWORD=mypassword;OPTION=3
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

NancyM
Pro Scripter
Posts: 66
Joined: Mon Jul 18, 2016 7:01 pm

Re: MySQL Database connection issues

Post by NancyM » Tue Jul 19, 2016 3:19 pm

Yup, thanks. I sure didn't see that but now I do.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts