MySQL Startup error

Source: Internet
Author: User

Service MySQL start times: error! The server quit without updating PID file (/usr/local/mysql/data/mysql1.pid), error.

1. Check the error log:

Could not open or create the system tablespace. If you tried to add new data files to the system tablespace, and it failed here, you should now edit Innodb_data_file_path In my.cnf back to what it is, and remove the new ibdata files InnoDB created in this failed attempt. InnoDB only wrote those files full of zeros, and did not yet with them in any. But is careful:do not remove old data files which contain your precious data!

The discovery was caused by my.cnf this file configuration error.

2, VIM/ETC/MY.CNF

Increase:

Innodb_data_file_path=ibdata1:12m;ibdata2:10m:autoextend

The parameters are consistent with the existing table space, that is, the file size in the/usr/local/mysql/data/directory. Or just delete the ibdata1 ib_logfile0 ib_logfile1 These three files can also.

Start again, find or report the error. The acknowledgement was caused by a my.cnf file configuration error.

To modify the My.cnf file:

Comments:

#pid-file=/var/run/mysqld/mysqld.pid

#socket =/var/lib/mysql/mysql.sock

These two lines are commented out.

Start again and you will succeed.

MySQL Startup error

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.