/Usr/bin/mysqladmin: connect to server at 'localhost' failed
Error: 'Can't connect to local MySQL server through socket '/var/run/mysqld. Sock' (2)
Check that mysqld is running and that the socket: '/var/run/mysqld. Sock' exists
View/var/log/MySQL. Err first
If it is found to be null, MySQL does not exist.
Check daemon. log again
Only the mysqld error is prompted,
View syslogs and find the following information:
/Usr/sbin/mysqld: disk is full Writing '/var/log/MySQL/mysql-bin.000442' (errcode: 28). Waiting for someone to free space
It turns out that hard disk space is insufficient!
Haha, music videos take part of the log. MySQL is automatically started!
Similar problems may also cause the following reasons:
1. The directory has no write permission.
2. After the IP address is changed, it is inconsistent with the Bind Address in/etc/MySQL/My. CNF. Modify the IP address bind. Then/etc/init. d/MySQL restart should be done.