During the use of mysql, it was found that the number of connections exceeded~~~~ [root@linux-node1 ~]# mysql -u glance -h 192.168.1.17 -p Enter password: ERROR 1040 (08004): Too many connections The solution is to modify the number of mysql connections under centos7: 1) Temporary modification MariaDB [(none)]> show variables like "max_connections"; 2) Permanent modification: Configure /etc/my.cnf Configure /usr/lib/systemd/system/mariadb.service [Service] Add two new lines with the following parameters: Reload system services and restart mariadb service systemctl --system daemon-reload Check the maximum number of connections of the mariadb database again, and you can see that the maximum number of connections is already 1000 MariaDB [(none)]> show variables like 'max_connections'; The above article on setting the number of MySQL connections (Too many connections) is all I have to share with you. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM. You may also be interested in:
|
>>: Nginx server https configuration method example
1. Create a new rabbitmq in the /etc/init.d direc...
In react, if you modify the state directly using ...
CSS import method - inline Through the style tag ...
Usually in project development, we have to deal wi...
The spread operator allows an expression to be ex...
The Linux operating system has revolutionized the...
String extraction without delimiters Question Req...
Problem: The null type data returned by mybatis d...
A common suggestion is to create indexes for WHER...
1. Radio grouping As long as the name is the same,...
HTML beginners often encounter the problem of how ...
When it comes to tool-type websites, we first hav...
Data display has always been a demand that all wa...
This article uses an example to describe how MySQ...
This article shares the specific code for impleme...