MySQL boot does not successfully display the server quit without updating PID file solution

Source: Internet
Author: User

In the morning when compiling the installation of MySQL in the title of the error, after practice in the second step after the launch of success, reference link

Link http://linuxadministrator.pro/blog/?p=225

You could face this error while restarting MySQL. Below is some fix for the same.

[[Email protected]:~] $ service mysqld start
Starting MySQL ... error! The server quit without updating PID file
This error can is de to different reasons.

1. Check If there is any running MySQL process by using the following commands and kill all and restart.

PS aux | grep MySQL
If you is able to see any MySQL process like below, just kill that process.

[Email protected] [~]# PS aux | grep MySQL
Root 1140 0.0 0.0 4140 676 pts/0 d+ 22:34 0:00 grep mysql
Root 2987 0.0 0.0 4736 1288? S Sep27 0:00/bin/sh/usr/bin/mysqld_safe
Now kill it.

Kill-9 2987
Make sure, there is no MySQL process running at the this point. Restart MySQL.

Service mysqld Restart
2. If the above fix is not working, now we can try some more. It can due to some conflicting entries in MY.CNF

Try moving the MySQL config file/etc/my.cnf file and restart MySQL.

Mv/etc/my.cnf/etc/my.cnf.backup
Restart MySQL.

Service mysqld Restart
3. If None of the above is working, try-to-move the log file named "Ib_logfile" in "/var/lib/mysql" and restart MySQL. Sometimes MySQL would fail because it face difficulty updating the log file.

mv/var/lib/mysql/ib_logfile*/root/
Restart and see the results.

Service mysqld Restart

But after the second step, someone will have a question, if there is no my.conf file, which is the current configuration file MySQL? Google searched for another netizen's answer.

If it can ' t find a my.cnf or My.ini file, MySQL would use the its compiled-in defaults. The. cnf/.ini files is not necessary unless your want to override those defaults.

The Medium/huge/small/large files you found is suggested setups for the "size" of the server. Just pick the one in/etc that suits your needs and rename it to MY.CNF (in the same directory), restart MySQL, and it sho Uld make this configuration take effect.

That is to say this my.conf you can according to your host's memory size self-set, and you do not change my.conf This configuration system will automatically for you to use the default configuration, I do not want to start the reason, it is possible that their configuration is wrong.

MySQL boot does not successfully display the server quit without updating PID file solution

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.