MySQL toomanyconnections (1040)

Source: Internet
Author: User
1. If your MySQL database is configured using the my. cnf file, find the file etcmy. cnf editor, and change max_connections to 10000. The maximum number of connections allowed by the actual MySQL server is 16384. Set-variablemax_connections100002, if your MySQL database uses the my. ini file configuration find the file binmy. in

1. If your MySQL database is configured using the my. cnf file, find the file/etc/my. cnf editor and change max_connections to 10000. The maximum number of connections allowed by the actual MySQL server is 16384. Set-variable = max_connections = 10000 2. If your MySQL database uses the my. ini file configuration, find the file/bin/my. in.

1. If your MySQL database uses the my. cnf file configuration

Find the/etc/my. cnf file.

Open the editor and modify the value of max_connections to 10000. The maximum number of connections allowed by the actual MySQL server is 16384.

Set-variable = max_connections = 10000

2. If your MySQL database uses the my. ini file configuration

Find the file/bin/my. ini (not necessarily here, based on your database)

Add in [mysqld]
Max_connections = 10000
If there is one, you can modify the value of max_connections.

3. Restart the mysql database.

In this way, the too connector connections (1040) error occurs in MySQL.

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.