5 Nov
2005
5 Nov
'05
15:35
Nathan, On Saturday 05 November 2005 06:17, perlcgi2000 wrote:
I'm trying to install mysql on suse 9.3 using apt.
It seems to install ok and chkconfig --add mysql works.
But when I try mysql start (in etc/init.d) I get:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
var/lib/mysql is empty. What am I doing wrong ?
Most likely you were not root when you tried to start MySQL. After it runs the first time, all the necessary files in /var/lib/mysql will be created. Assuming you want to have MySQL running whenever your system is up, go to YaST -> System -> System Services (Runlevel) and set the mysql service to be running in runlevels 3 and 5.
Thanks, Nathan
Randall Schulz