Ways to resolve Mysqld_safe problems

Source: Internet
Author: User
Tags socket


startup MySQL times wrong:

141220 07:50:59 mysqld_safe mysqld from PID File/usr/local/mysql/data/vps.cbo999.com.pid ended
141220 07:54:30 Mysqld_safe starting mysqld daemon with databases From/usr/local/mysql/data
141220 7:54:30 [note] Plugin ' InnoDB ' is disabled.
141220 7:54:30 [note] Server hostname (bind-address): ' 0.0.0.0 '; port:3306
141220 7:54:30 [note]– ' 0.0.0.0 ' resolves to ' 0.0.0.0 ';
141220 7:54:30 [note] Server socket created on IP: ' 0.0.0.0 '.
141220 7:54:30 [note] Event scheduler:loaded 0 Events
141220 7:54:30 [note]/usr/local/mysql/bin/mysqld:ready for connections.
Version: ' 5.5.34-log ' socket: '/tmp/mysql.sock ' port:3306 Source distribution
141220 7:54:48 [note]/usr/local/mysql/bin/mysqld:normal shutdown

Analysis: Is/tmp/mysql.sock does not exist
Because the MySQL default mysql.sock is in/var/lib/mysql/mysql.sock, create a symbolic connection:
Ln-s/var/lib/mysql/mysql.sock/tmp/mysql.sock
Then start MySQL, fix it.

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.