Saturday, June 25, 2005

MySQL start

A thread from Slackware forum :


I am stumped as to why this is happening, here is my output:

code:
root@darkstar:~# chmod a+x /etc/rc.d/rc.mysqld
root@darkstar:~# /etc/rc.d/rc.mysqld start
root@darkstar:~# Starting mysqld daemon with databases from /var/lib/mysql
STOPPING server from pid file /var/run/mysql/mysql.pid
050105 00:12:10 mysqld ended


Why is this?
When I try to run "mysql", I get the following:

code:
ERROR 2002: Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2)


What can I do to fix this?

EDIT: I have the MySQL package "mysql-4.0.22-i486-1jim.tgz" from LinuxPackages.net.


To know the answer follow this link :
http://www.linuxquestions.org/questions/showthread.php?s=&threadid=273988