Modify the maximum number of mysql connection

Source: Internet
Author: User
Keywords Network programming Mysql tutorial
Tags connections default environment etc exit file find mysql

Modify the maximum number of mysql connection

The maximum number of mysql connection is 100 by default, the maximum can reach 16384. Setting method:

Method one / etc path, find the MY.INI file,
Modify [mysqld]
Add in the back:
set-variable = max_connections = 500

Save and exit, restart MYSQL, OK!

Method two in MYSQL running environment, the implementation

Set global max_connections = 1000;

Then shut down mysql restart it, use

/ mysqladmin where the path / mysqladmin-uroot-p variables

Enter the password of the root database account can be seen

| max_connections | 1000 |

That is, the new changes have taken effect.

Can also be run in the MYSQL environment
show variables

Check the value of max_connections.

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.