StackOverflow had similar questions about this, but I did not find the same situation. This is on an OS X Leopard computer using MySQL
Some initial information:
MySQL Server version 5.1.30
Apache/2.2.13 (Unix)
Python 2.5.1
mod_wsgi 3
mysqladmin also has skip-networking specified as OFF
I can connect to mysql from python command line. But when I try to do this through mod_wsgi, using code that is copied and pasted or through Django, I get a general rejection
OperationalError: (2003, "Can't connect to MySQL server on 'localhost' (49)")
I looked at the mysql manual and tried its troubleshooting tips, for example
telnet localhost 3306
and i do get a connection.
I may not try to connect as root.
, ?
!
user218112