RH 9.0
user mysql
command /usr/sbin/mysqld
mysql is being loaded at boot. the previous is listed when I check
what process are running with < ps -aux >
however:
[craig@localhost mysql]$ ./bin/mysqladmin version
../bin/mysqladmin: connect to server at ''localhost'' failed
error: ''Can''t connect to local MySQL server through socket ''/tmp/mysql.sock'' (2)''
Check that mysqld is running and that the socket: ''/tmp/mysql.sock'' exists!
is telling me that it isn''t running ??
解决方案
./bin/mysqladmin version
../bin/mysqladmin: connect to server at ''localhost'' failed
error: ''Can''t connect to local MySQL server through socket ''/tmp/mysql.sock'' (2)''
Check that mysqld is running and that the socket: ''/tmp/mysql.sock'' exists!
is telling me that it isn''t running ??
craig wrote:
[craig@localhost mysql]
./bin/mysqladmin version
./bin/mysqladmin: connect to server at ''localhost'' failed
error: ''Can''t connect to local MySQL server through socket ''/tmp/mysql.sock'' (2)''
Check that mysqld is running and that the socket: ''/tmp/mysql.sock'' exists!
is telling me that it isn''t running ??
I think it is running, but clients try to connect to different socket
file than what the server is using. Either change file for server or
change it for clients. Or something has deleted the socket file. Read
more from:
http://www.mysql.com/doc/en/Can_not_...to_server.html