Mysqld_safe start, usr/local/mysql/data/ib_logfile0 is of different size... Error

Source: Internet
Author: User

After mysql 32-bit binary distribution is installed in linux, the mysql service is started directly without configuration files. Then use the configuration file/etc/my. cnf to configure the global variable and start it. It is found that mysqld_safe has been started and an error is reported. The specific error message is:

InnoDB: Error: log file/usr/local/mysql/data/ib_logfile0 is of different size 0 5242880 bytesInnoDB: than specified in the. cnf file 0 209715200 bytes! 120803 20:17:05 [ERROR] Plugin 'innodb' init function returned error.120803 20:17:05 [ERROR] Plugin 'innodb' registry as a storage engine failed.120803 20:17:05 [ERROR] Unknown/unsupported table type: innodb120803 20:17:05 [ERROR] Aborting120803 20:17:05 [Note]/usr/local/mysql/bin/mysqld: Shutdown complete120803 20:17:05 mysqld_safe mysqld from pid file/usr/local/mysql/tmp/mysql. pid ended

The size of the ib_logfile0 file is always different from the configured value. Startup failed.

Check the cause and find that these files have been generated in the data directory because of the previous startup. Therefore, if you set the variable value instead of the file size, an error is reported.

Solution:

Directly delete the file generated before startup in the data directory, including the binary log file, and then start again. No problem!

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.