libmysql won't connect to localhost but ODBC will
Posted by: Rene Churchill
Date: January 30, 2012 11:22AM

I'm pulling my hair out on this one. I've got a simple test app written two ways. One using the ODBC connector (v5.1.8) and the other with libmysql (v6.0.2).

The test app just tries to connect to the database and reports success/failure and then exits. When I'm running on Win7 Pro 64bit, the ODBC version can connect to the mysql server running on localhost but the libmysql one cannot. Both can connect to remote mysql servers (both Linux & Win7), it is just localhost that's giving me fits.

Mysqld is running on the Win7 machine, ODBC can connect to it. I can connect to it remotely from the Linux box so port 3306 is open in the windows firewall. I can connect to it via the windows command line.

Any thoughts on why libmysql can connect just fine to a remote machine but not to localhost?

Thanks,
Rene



Edited 1 time(s). Last edit at 01/31/2012 07:37AM by Rene Churchill.

Options: ReplyQuote


Subject
Views
Written By
Posted
libmysql won't connect to localhost but ODBC will
3012
January 30, 2012 11:22AM


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.