I'm having some troubles setting MySql (mariadb running on CentOS7) When I issue
show global variables where variable_name = 'max_allowed_packet';
The response is
+--------------------+---------+
| Variable_name | Value |
+--------------------+---------+
| max_allowed_packet | 1048576 |
+--------------------+---------+
1 row in set (0.00 sec)
Witch means that it is 1M. I need to leave permanently this value at 5M or bigger I tried editing the file /etc/my.cnf by adding
[mysqldump]
max_allowed_packet=16M
So it remained like this.
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
# Settings user and group are ignored when systemd is used.
# If you need to run mysqld under a different user or group,
# customize your systemd unit file for mariadb according to the
# instructions in http://fedoraproject.org/wiki/Systemd
[mysqldump]
max_allowed_packet=16M
[mysqld_safe]
log-error=/var/log/mariadb/mariadb.log
pid-file=/var/run/mariadb/mariadb.pid
#
# include all files from the config directory
#
!includedir /etc/my.cnf.d
But after restarting the server it looks like the max_allowed_packet = 1048576 Any suggestion please?. Thanks in advance.