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
User namespace is a new namespace added in Linux ...
Table of contents 1. Introduction 2. Actual Cases...
Due to encoding reasons, garbled characters will ...
The implementation of custom carousel chart using...
Before, I had built WordPress myself, but at that...
Reasonable setting of MySQL sql_mode sql_mode is ...
When we are writing a page, we often encounter a ...
Red and pink, and their hexadecimal codes. #99003...
Some time ago, the blogger installed the Ubuntu s...
PHP7 has been out for quite some time, and it is ...
Written in front There are two ways to upgrade My...
Table of contents 1.0 Introduction 2.0 Docker Ins...
The vue project built with cli3 is known as a zer...
We can use the scp command of Linux (scp cannot b...
In Docker Start all container commands docker sta...