Method 1: Command line modification We only need to open the MySQL console and enter the "set GLOBAL max_connections=1000;" statement to directly set the maximum number of connections, as shown in the following figure: Note: This method is only a temporary solution and can only temporarily modify the maximum number of connections. If you restart MySQL, the maximum number of connections will return to the original setting. Method 2: Modify the maximum number of connections through the MySQL configuration file 1. Open the MySQL installation directory on the computer and find the my.ini file, as shown in the following figure: 2. Open the my.ini file with Notepad, find and modify the value of "max_connections". The default maximum number of connections is 100, as shown in the following figure: Set "max_connections=1000" to set the maximum number of MySQL connections to 1000. 3. After setting the maximum number of connections, you need to restart the MySQL service In [Computer]-->[Management]-->[Services and Applications]-->[Services]-->[MySQL] Click mysql and right-click to start or shut down, as shown in the following figure: This sets the maximum number of MySQL connections to 1000, and it is a permanent setting. You may also be interested in:
|
<<: How to prevent hyperlink redirection using JavaScript (multiple ways of writing)
How Nginx works Nginx consists of a core and modu...
Docker daemon socket The Docker daemon can listen...
Table of contents Mainly used Postman functions D...
By default, MySQL in Linux distinguishes between ...
Is it the effect below? If so, please continue re...
Execute the command to install the plugin postcss...
GitHub has all kinds of magic tools. Today I foun...
Preface mysqlslap is a diagnostic program designe...
1. SHOW PROCESSLIST command SHOW PROCESSLIST show...
MariaDB database management system is a branch of...
Table of contents Overview The role of reverse pr...
The operating environment of this tutorial: Windo...
1. MySQL self-connection MySQL sometimes needs to...
Preface “When it comes to image processing, we of...
1. Percentage basis for element width/height/padd...