Re: help : Problem in connection(python with mysql)
You may need to provide an explicit path to the UNIX socket for MySQL if the client library that MySQLdb was compiled against has a different default than where the server is placing it.
If you can connect to the server using the mysql command-line client, you can figure out where the server's socket is by using "SHOW VARIABLES LIKE 'socket'"
Then your connect call will look something like:
conn = MySQLdb.connect(host="localhost", user="root", passwd="testpass", db="ex_site", unix_socket="/path/to/socket")
Hope that helps!
Jim Winstead
MySQL/Sun
Subject
Written By
Posted
Re: help : Problem in connection(python with mysql)
November 01, 2006 01:15PM
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.