MySQL Start error report the server quit without updating PID file

Source: Internet
Author: User

MySQL installation time after installation failed to start error:

Starting MySQL. error! The server quit without updating PID file (/data/mysql/26765574162f.pid).


To view the error log:

[ERROR] Fatal Error:can ' t open and Lock Privilege tables:table ' mysql.user ' doesn ' t exist


Workaround:


1. Edit the configuration file:

Vim/etc/my.cnf
Basedir =/usr/local/mysqldatadir =/data/mysqlsocket =/tmp/mysql.socklog-error =/data/mysql/error.logpid-file =/data /mysql/mysql.piduser = Mysqltmpdir =/tmp

2. Reinitialize MySQL:

./mysql_install_db--user=mysql--basedir=/usr/local/mysql--datadir=/data/mysql--pid-file=/data/mysql/mysql.pid- -tmpdir=/tmp

And then the boot will succeed:



MySQL Start error report the server quit without updating PID file

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.