Can't connect to local mysql server through socket '/var/lib/mysql/mysql.sock' (2)
This is what the shell says when i type 'mysql'. Any suggestions on how to make it work
thanks for any help
Tyrone
Printable View
Can't connect to local mysql server through socket '/var/lib/mysql/mysql.sock' (2)
This is what the shell says when i type 'mysql'. Any suggestions on how to make it work
thanks for any help
Tyrone
is the mysql server started?
try:
If you dont get any output, then its not started.Code:netstat -ant | grep :3306
cd to the directory where you installed mysql, then run as root:
or it may be (i cannot remember):Code:./bin/safe_mysqld --user=mysql
If you used an RPM to install it, then the chances are that it is not installed anywhere inparticular (thanks redhat!), so just run safe_mysqld or mysqld_safe (i cannot remember).Code:./bin/mysqld_safe --user=mysql
Jason
Jason
As root type
service mysqld start
hth
Check if your mysql-processes are up and running...
If so verify if mysql have binded a socket withCode:ps -efl | grep mysql
If you dont get any hits on thoose 2 commands something is wrong with mysql, have you verifed that its installed and are attempt to start??Code:netstat -anp |grep LIST |grep mysql