You are not logged in.
MySQLdb (mysql-python) and PHP mysql module ignores /etc/my.cnf file (socket and charset setting in [client] section). I also tried /etc/mysql/my.cnf. Clients from mysql-clients work fine. Can you help me with this?
$ldd /usr/lib/python2.4/site-packages/_mysql.so|grep mysql
libmysqlclient_r.so.15 => /usr/lib/libmysqlclient_r.so.15 (0xb7e8d000)
$strings libmysqlclient_r.so|grep \/etc
/etc/
/etc
$ldd `which mysql`|grep mysql
libmysqlclient.so.15 => /usr/lib/libmysqlclient.so.15 (0xb7da6000)
$strings libmysqlclient.so|grep \/etc
/etc/
/etc
MYSQL_HOME=/etc python c.py
python c.py
both ignore /etc/my.cnf
mysql -p
MYSQL_HOME=/lost+found mysql -p
both work great
Offline