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
Re: Ms Visual FoxPro 9.0 - connect to MySQL
8041
July 13, 2006 08:59AM


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.