Can't connect to local MySQL server through socket '/var/run/mysqld. Sock'

Source: Internet
Author: User
/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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.