Answer the question
In order to leave comments, you need to log in
Why does max_connections change itself?
Good afternoon. The centos 7 system is installed django + uwsgi + mariadb + nginx
The essence of the issue is this if I set max_connections = 1000 in the my.cnf file and save. After restarting mysql, if I look in the database, I see this:
MariaDB [(none)]> show variables like 'max_connections';
+-----------------+--------+
| Variable_name | Value |
+-----------------+--------+
| max_connections | 100000 |
+-----------------+--------+
# This group is read both by the client and the server
# use it for options that affect everything
#
[client-server]
[mysqld]
max_connections = 1000
query_cache_size = 0
query_cache_type = 0
#
# include *.cnf from the config directory
#
!includedir /etc/my.cnf.d
| Variable_name | Value |
+-----------------+--------+
| max_connections | 100000 |
+-----------------+--------+
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question