Hello,
i run whm on my fedora 5 server. but when i try ti start mysql it fails and nothing writed to logs. here is the message while restarting:
Attempting to restart mysql
Waiting for mysql to restart.... . . . . . . . . . . finished.
mysql status
/usr/bin/mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)' Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists! mysql has failed, please contact the sysadmin (result was "Warning, no valid mysql.sock file found.mysql has failed").
but if to run server like sudo -u mysql mysqld_safe & it will start even the next restart from whm will work but the next will fail.
how to make it work?
p.s.
WHM 10.8.0 cPanel 10.9.0-C117
Fedora i686 - WHM X v3.1.0
cat /etc/my.cnf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1
[mysql.server]
user=mysql
basedir=/var/lib
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
i run whm on my fedora 5 server. but when i try ti start mysql it fails and nothing writed to logs. here is the message while restarting:
Attempting to restart mysql
Waiting for mysql to restart.... . . . . . . . . . . finished.
mysql status
/usr/bin/mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)' Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists! mysql has failed, please contact the sysadmin (result was "Warning, no valid mysql.sock file found.mysql has failed").
but if to run server like sudo -u mysql mysqld_safe & it will start even the next restart from whm will work but the next will fail.
how to make it work?
p.s.
WHM 10.8.0 cPanel 10.9.0-C117
Fedora i686 - WHM X v3.1.0
cat /etc/my.cnf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1
[mysql.server]
user=mysql
basedir=/var/lib
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid