[debian-mysql] Bug#545751: mysql-server-5.1: /etc/mysql/debian.cnf unreadable
Hector Oron
hector.oron at gmail.com
Mon Mar 22 19:56:31 UTC 2010
Hello,
I got bitten by this bug. While debugging startup script
(/etc/init.d/mysql), it tries to read /etc/mysql/debian.cnf but this
file is rw------- owned by root:root, causing following error:
++ /usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping
+ ping_output='/usr/bin/mysqladmin: connect to server at
'\''localhost'\'' failed
error: '\''Can'\''t connect to local MySQL server through socket
'\''/var/run/mysqld/mysqld.sock'\'' (2)'\''
Check that mysqld is running and that the socket:
'\''/var/run/mysqld/mysqld.sock'\'' exists!'
I also need to have 'lo' loopback network interface up and a
resolvable localhost domain :-)
Well, at least doing a chmod a+r to debian.cnf fixed my problem which
it is unsafe for multiuser computers.
I hope this helps to find a proper fix to this issue.
Kind regards,
--
Héctor Orón
"Our Sun unleashes tremendous flares expelling hot gas into the Solar
System, which one day will disconnect us."
More information about the pkg-mysql-maint
mailing list