Some experiences on MySQL Optimization on Linux host

Source: Internet
Author: User

Recently, the company's servers are always faulty. Sometimes the access speed is too slow to handle. I am just getting started with Linux, but I can't find the problem. I am so bored. First, I want to modify the mysql configuration file to check whether it is a database problem. cnf, which can only be learned after being instructed by others -(*). the cnf file is renamed to my. cnf login into/etc, to see their own database, the mysql-medium.cnf is renamed after login, in my. in cnf [mysqld], mysqldumpslow is added to record the slow mysql query statement. After running the statement for a few days, a record is not found and the record is lost. The permission and other statements have been changed, or not.

Later I thought about whether the problem was caused by max_connections. Running show variables in mysql found that max_connections only had 100, changed to 500, and then restarted mysql. It seems that there have been no problems in the past few days. I hope I have not found the cause of the 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.