Mysql database option settings (solve the repair with keycache problem)

Source: Internet
Author: User


Mysql database option settings (solved the repair with keycache problem) Today, I imported a database backup file to mysql. After running for a while, I found that it was stopped for a long time. I monitored it with workbench, the repair with keycache statement is found to be slow and some queries are made online. The two parameters are optimized to set myisam_max_sort_file_size and myisam_sort_buffer_size. The default values of these two parameters are
Java code myisam_max_sort_file_size = 2G myisam_sort_buffer_size = 8 M www.2cto.com modify the configuration file to (if there is no such two parameters, add) java code myisam_max_sort_file_size = 10G myisam_sort_buffer_size = 64 M. After that, the import program runs much faster than before, and the repair with keycache statement does not appear again. If it appears again, the two parameter values will be increased. Author lwjlaser

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.