About MySQL can not start the experience, using Systemctl restart Mysqld failed

Source: Internet
Author: User
Use the following command yourself
905 Mkdir-p Var/run/mysqld
906 ls-ld/var/run/mysqld/
907 Chown mysql.mysql/var/run/mysqld/
908 ls-ld/var/run/mysqld/
909 Mkdir-p Var/run/mysql
910 Chown Mysql.mysql/var/run/mysql

Previously created the Mysqld directory and assigned his permissions to MySQL, but this time still found hints
2018-05-20t09:43:00.772513z 0 [ERROR] Could not open UNIX socket lock File/var/lib/mysql/mysql.sock.lock.
2018-05-20t09:43:00.772515z 0 [ERROR] Unable to setup UNIX socket lock file.
2018-05-20t09:43:00.772517z 0 [ERROR] aborting

After the restart fails, I view the log. I'm trying to give MySQL root permission.
vi/etc/passwd
Mysql:x:27:27:mysql Server:/var/lib/mysql:/bin/false
Modified to Mysql:x:0:27:mysql Server:/var/lib/mysql:/bin/false
Restart again
Systemctl Restart Mysqld
Has succeeded

If you have other methods: Welcome to discuss

About MySQL can not start the experience, using Systemctl restart Mysqld failed

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.