We all know that increasing the percentage of MySQL connections is still relatively large in actual applications. If you are interested in this technology, the following articles will unveil its secrets, I hope it will help you in this regard. The following is the main content of the text.
Edit the configuration file of MySQL (the best combination with PHP)
My. cnf or my. ini
In the [MySQL (best combination with PHP) d] configuration section, add:
- Max_connections = 1000
Save and restart the MySQL (the best combination with PHP) service.
Run the following command:
MySQL (best combination with PHP) admin-uroot-p variables
Enter the password of the root database account.
- | Max_connections | 1000 |
That is, the new change has taken effect. The above content is an introduction to how to increase the number of MySQL connections. I hope you will have some gains.