Error: Unknown storage engine 'innodb' when mysql executes the SQL file. engineinnodb

Source: Internet
Author: User

Error: Unknown storage engine 'innodb' when mysql executes the SQL file. engineinnodb

Problems Found

Recently, I encountered a problem in my work. I ran an innoDB SQL file and reported the Error: Unknown storage engine 'innodb'. I checked many methods online, however, I can't solve my problem. I solved it later. I will summarize the process here to make it easy for friends who have encountered similar situations to have some reference. I will not talk about it below, let's take a look at the detailed introduction.

Solution Process:

I am using a database of MySQL. Run the "show engines" command first when the preceding error occurs. view the engine details:

No innodb entry found:

Then we can view the log file:

If you do not know the location of the windowns log file, run the following command:->show variables like '%error%';View

Then: in the log, we find that:

The error is that the content of the ibdata1 file is incorrect.

Next, we close the data service, delete the ibadata1 file under the installation directory, and view the following two files in the same directory as the error log:

After the deletion is successful, modify the parameters of the my. ini file.

innodb_buffer_pool_size = 256Minnodb_log_file_size  = 256Minnodb_thread_concurrency = 16innodb_flush_log_at_trx_commit = 2innodb_flush_method  = normal 

Whereinnodb_flush_method = normalIs final, and other parameters are included in the original configuration file.

Save the changes and start the mysql service again.

Execute again-》show engines;

InnoDB is ready for use.

Run the file again to run it perfectly.

Summary

The above is all the content of this article. I hope the content of this article will help you in your study or work. If you have any questions, please leave a message, thank you for your support.

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.