![无法通过socket连接本地MySQL服务器问题](https://linux22.com/image/927880/%E6%97%A0%E6%B3%95%E9%80%9A%E8%BF%87socket%E8%BF%9E%E6%8E%A5%E6%9C%AC%E5%9C%B0MySQL%E6%9C%8D%E5%8A%A1%E5%99%A8%E9%97%AE%E9%A2%98.png)
有人遇到过这个问题吗?
root@spmmktlxcrm002:~# tail -f /var/log/upstart/mysql.log
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
200722 11:16:11 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
200722 11:16:11 [Warning] The syntax '--log-slow-queries' is deprecated and will be removed in a future release. Please use '--slow-query-log'/'--slow-query-log-file' instead.
200722 11:16:11 [Note] /usr/sbin/mysqld (mysqld 5.5.43-0ubuntu0.14.04.1-log) starting as process 6213 ...
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!