MySQL Too many connections problem

Source: Internet
Author: User

My process steps:

First step: Determine if your service can be restarted for the first time, if it is possible to restart the second step, if you can not restart the third step, the main consideration has been deployed to the customer site or the database is in use cannot be restarted.

The second step: Find the installation path of MySQL, here to install the system if it is a Linux system, you can use the command where is MySQL. If the Windows system tried the online approach, using the SQL statement: SELECT @ @basedir from dual, but in the MySQL too many state is unable to execute SQL, so this method is not feasible. I have not found a good way, I was found through the default installation path and search, the general installation path is C:\Program files\mysql\mysql Server 5.5. After finding the path to change the configuration file, here are two types of files found in the root directory My.ini file modification inside max_connections = Wait_timeout = 5

The second is to modify the contents of the my.conf file below and then restart the service, open the Task Manager service name for the MySQL stop service, and then restart the service

The restart method has been modified.

The third step: in principle there is no restart can be resolved, unless you turn off a connecting client service. Here I also briefly say, close a client request (for example, the program being requested), make a connection so that you can go through the command mysql-h localhost-uroot-p into MySQL by command show Processlist to find a process ID through the command The Kill Id;id represents the ID number. The personal attempt is to restart the service modification configuration file, if there is no need to restart the way to solve the master explanation.

MySQL Too many connections problem

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.