Too connector connections in MySQL

Source: Internet
Author: User
Tags mysql manual

Solution to the too connector connections problem in MySQL
Keyword: MySQL
When using MySQL, the too connector connections error is often reported. If you cannot log on, you can only restart the instance. You can solve this problem by using the following methods:

1. First modify the/etc/My. CNF file and add the following line

Set-variable = max_connections = 500

Or add the parameter max_connections = 500 to the startup command.
It is to modify the maximum number of connections, and then restart mysql. The default number of connections is 100, which is too small, so the problem is prone to errors.

2. Restart MySQL and run show variables to check whether max_connections has been modified successfully.

3. To prevent logon failures during too connector connections, MySQL Manual provides the following instructions:

Mysqld actually allows max_connections + 1 clients to connect. the extra connection is reserved for use by accounts that have the super privilege. by granting the super privilege to administrators and not to normal users (who shocould not need it ), an administrator can connect to the server and use show processlist to diagnose problems even if the maximum number of unprivileged clients are connected.

therefore, only the super permission of the root user must be granted, and the super permission cannot be granted to all database connection accounts. The preceding error is caused by the root user directly configured by the Program of our application.

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.