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
Through permission-based email marketing, not onl...
SpringBoot is like a giant python, slowly winding...
Set the background image for the table header. Yo...
I like to pay attention to some news on weekdays a...
[Problem description] On the application side, th...
1. The role of index Generally speaking, an index...
1. Network Optimization YSlow has 23 rules. These...
When logging in to the stress test, many differen...
Table of contents 1. Simple mounting of persisten...
This article shares the specific code of Vue+echa...
This article shares the specific code of js to ac...
1. The role of index In general application syste...
Basic Concepts Current read and snapshot read In ...
Table of contents 1. Installation 2. Import in ma...
1. Introduction Containers use a sandbox mechanis...