I want to edit the /etc/my.cnf
file.
I've tried to use this as the file content:
[mysqld]
set-variable = max_allowed_packet=24M
set-variable = max_connections=300
log-slow-queries
safe-show-database
local-infile=0
open_files_limit=3980
then, I've tried to restart the mysql
server:
/etc/rc.d/init.d/mysql restart
but it failed with the following error:
root@server1 [~]# /etc/rc.d/init.d/mysql restart
Shutting down MySQL.... [ OK ]
Starting MySQL...The server quit without updating PID file (/var/lib/mysql server1.domain.com.pid). [FAILED]
I've read here that I need to replace [mysqld]
with [mysql]
, but he is using Percona, and I am just using a standart whm/cpanel installation, will it work too?