patternsqlMinor
Max Connections Maria DB
Viewed 0 times
maxconnectionsmaria
Problem
Every time I reboot Mariadb places me the max_connections in 151 and in the my.cnf I have it with 300. Why does this happen?
Solution
This depend if you set
Don't want a downtime?
max_connections under the correct section inside my.cnf. what do you need to check(with examples)- go to MySQL Directory
cd /opt/mysql
- edit
my.cnfusing any text editorsudo vi my.cnf
- search for
[mysqld]
- add the following lines directly under it
max_connections=300
- save and quit
- restart the services.
Don't want a downtime?
- connect to MySQL using root user
mysql -u root -p
SET GLOBAL max_connections=300;
quit
Context
StackExchange Database Administrators Q#241683, answer score: 5
Revisions (0)
No revisions yet.