I was fumbling with this myself, and found excellent information
about the various ODBC command options you can use with MySQL
here:
http://dev.mysql.com/doc/refman/5.0/en/connector-odbc-configuration-connection-parameters.html
You can use DSN-less connections by setting up and storing a
connection string such as:
m.cConnStr = “Driver={MySQL ODBC 5.1
Driver};Server=www.yourserver.com;Port=3306;Database=yourdatabase;User=yourmysqluser;Password=yourmysqlpassword;Option=67108864″
and the last parameter, “Option” you would set to a number that is the sum of the values of each option you want to enable (enumerated on the above link).
Once you have your SQL connection string correct and including the options you want, simply pass that connection string to VFP’s SQLSTRINGCONNECT …
[Read more]