Connection To MySQL

Just starting out? Need help? Post your questions and find answers here.
jcoleuk
User
User
Posts: 12
Joined: Mon Apr 18, 2005 5:20 pm
Location: UK

Connection To MySQL

Post by jcoleuk »

How can I use PureB to connect to a local MySQL database on my Windows machine.


Thanks,
Josh.
Last edited by jcoleuk on Sat Jan 28, 2006 12:20 pm, edited 1 time in total.
josku_x
Addict
Addict
Posts: 997
Joined: Sat Sep 24, 2005 2:08 pm

Post by josku_x »

Do you have MySQL and PHP installed on your machine?
And if yes, which versions?
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

hello, i made this daily. it's quite easy.

1/ Download on the mysql website the 'ODBC MySQL Connector for Windows 2000/XP', and install it.

2/ Be sure you have opened the MySQL TCP Port 3306 on your firewall(s).

3/ Execute the native configuration ODBC software 'odbcad32.exe' provided by Windows.

4/ Create a new system file, specifying a connection name, user, pwd, ...

5/ Use OpenDatabase(0,'odbcname','odbcuser','odbcpwd').
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
jcoleuk
User
User
Posts: 12
Joined: Mon Apr 18, 2005 5:20 pm
Location: UK

Post by jcoleuk »

Thanks for the reply.

I'm still having problems, I tried to add an SQL server connection to the ODBC config software but it won't connect to the MySQL server...

I disabled my firewall and still it wouldn't work, it doesn't show up in the Select Server menu so I just put in "(local)" like the help file says.

I really need some help with this.


Thanks,
Josh.
Post Reply