I am trying to change the max_connections configuration for a mysql instance running on a Ubuntu 16.04 server. I have tried placing this configuration...
[mysqld]
max_connections = 400
...in the following files already: /etc/my.cnf
, /etc/mysql/my.cnf
, /etc/mysql/mysql.conf.d/mysqld.cnf
, /etc/mysql/conf.d/mysql.cnf
.
I also added the following lines to /etc/apparmor.d/usr.sbin.mysqld
and restarted apparmor:
/etc/mysql/mysql.conf.d/* rl,
/etc/mysql/conf.d/* rl,
Nevertheless, every time I restart the mysql service, I am getting a value of 214 from the following query:
show global variables like "max_connections";
The mysql version is mysql Ver 14.14 Distrib 5.7.19, for Linux (x86_64) using EditLine wrapper
.
What am I missing?
/etc/mysql/my.cnf
and restarted mysql and it changed