PDA

View Full Version : [ubuntu] Cannot start mysql - "Can't connect to local MySQL server through socket:"



josh6847
March 15th, 2010, 05:38 PM
I am getting the following error when starting mysql using 'sudo /etc/init.d/mysql start':

Mar 15 16:33:56 MoodFishDev /etc/init.d/mysql[18317]: 0 processes alive and '/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping' resulted in
Mar 15 16:33:56 MoodFishDev /etc/init.d/mysql[18317]: ^G/usr/bin/mysqladmin: connect to server at 'localhost' failed
Mar 15 16:33:56 MoodFishDev /etc/init.d/mysql[18317]: error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Mar 15 16:33:56 MoodFishDev /etc/init.d/mysql[18317]: Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
Mar 15 16:33:56 MoodFishDev /etc/init.d/mysql[18317]:

I have tried manually creating the mysqld.sock file and I have checked permissions. Still no luck. This is a cloned ubuntu 8.04 slice from slicehost. I have done this before and never had problems with the mysql installation. Any ideas?

josh6847
March 15th, 2010, 09:12 PM
Had the wrong bind-address. Problem solved.