Python cant connect to mysql.

Rprp

Verified User
Joined
Dec 25, 2006
Messages
28
Hi,

If i run a script in python with Mysqldb,
It says: Connection to MySQL failed

So, whats wrong....

Somebody tells me mysql is blocking TCP connections,

But how can i accept TCP connections?

Grtz, Rprp
 
What server is your script trying to connect to? localhost, or a specific IP#? Or what?

Jeff
 
Try it with 127.0.0.1 instead of localhost to see if it's any different.

Otherwise I'm out of suggestions; anyone else?

Jeff
 
ricky@dedi262:~/.tremulous/base/parser$ ./tremstats.py
Connection to MySQL failed

Someone else said i must accept TCP connections in mysql.

But how? :<
 
Back
Top