MySQL connection under Windows

Find and share HowTos to various installations / configurations!
3 posts • Page 1 of 1
Troodon
Posts:3
Joined: Fri Nov 18, 2011 9:33 am

MySQL connection under Windows

Post by Troodon »

Is there any way to establish a connection with a MySQL database under Windows using the dbOpenConnection function?.

We have readed the help and we show that is neccesary a connect String of this type: "driver=;server=;uid=;pwd=;database=;port=;"

The help indicates that the driver under Linux is "QMYSQL" but is not referenced under Windows.

If anyone could tell me the entire connect String, I will apreciate it so much.

Thanks

vogler
Posts:122
Joined: Thu Oct 28, 2010 8:32 am

Re: MySQL connection under Windows

Post by vogler »

Hi,
On Windows you can use ODBC. Create an ODBC Data Source (DSN) in Windows and used it with a connect string like this: "DSN=;UID=;PWD=".
br.
Andreas

Troodon
Posts:3
Joined: Fri Nov 18, 2011 9:33 am

Re: MySQL connection under Windows

Post by Troodon »

It works.

Thank you very much.

3 posts • Page 1 of 1