Skip navigation links

MySQL Forums :: DBF, dBASE, FoxPro, Clipper, xBASE :: Ms Visual FoxPro 9.0 - connect to MySQL


Advanced Search

Re: Ms Visual FoxPro 9.0 - connect to MySQL
Posted by: donw ()
Date: July 13, 2006 08:59AM

Hi,

You need to download and install the mysql-connector-odbc-3.51.12-win32 on the station first. Then in some event code have the following.....

MySQLstr="DRIVER={MySQL ODBC 3.51 Driver};SERVER=xxx.xxx.xxx.xxx;"+;
"PORT=3306;DATABASE=somedatabase;USER="+alltrim(thisform.logidTxt.Value)+";"+;
"PASSWORD="+alltrim(thisform.pwdTxt.Value)+";OPTION=3;"


MySQLhandle=sqlstringconnect(MySQLstr)


if MySQLhandle>0 then

your good to go....

else

something's a mess

endif

Options: ReplyQuote


Subject Views Written By Posted
Ms Visual FoxPro 9.0 - connect to MySQL 13644 Michal S 05/07/2006 12:36PM
Re: Ms Visual FoxPro 9.0 - connect to MySQL 6383 donw 05/08/2006 10:31AM
Re: Ms Visual FoxPro 9.0 - connect to MySQL 9912 Kent Jensen 07/11/2006 09:24AM
Re: Ms Visual FoxPro 9.0 - connect to MySQL 6843 donw 07/13/2006 08:59AM
Re: Ms Visual FoxPro 9.0 - connect to MySQL 4898 Michal S 05/08/2006 11:44PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.