Hello,
Plask Management inferace error is:
ERROR: Zend_Db_Adapter_Exception: SQLSTATE[HY000] [2002] Connection refused (Abstract.php:144)
First, the datacenter lost power so the server shut off. I assume there is some DB corruption and why the SQL Service won't start.
Unable to connect to Plesk Database: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)
I ran the systemctl status mariadb.service command and this is below.
Plask Management inferace error is:
ERROR: Zend_Db_Adapter_Exception: SQLSTATE[HY000] [2002] Connection refused (Abstract.php:144)
First, the datacenter lost power so the server shut off. I assume there is some DB corruption and why the SQL Service won't start.
Code:
failed
Trying to start service mariadb... Job for mariadb.service failed. See 'systemctl status mariadb.service' and 'journalctl -xn' for details.
WARNING!
Some problems are found during start(see log file: /var/log/plesk/psa_service.log)
Continue...
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)
Unable to connect to Plesk Database: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)
I ran the systemctl status mariadb.service command and this is below.
Code:
Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled)
Active: failed (Result: exit-code) since Wed 2015-04-29 05:57:21 CEST; 5min ago
Process: 21210 ExecStartPost=/usr/libexec/mariadb-wait-ready $MAINPID (code=exited, status=1/FAILURE)
Process: 21208 ExecStart=/usr/bin/mysqld_safe --basedir=/usr (code=exited, status=0/SUCCESS)
Process: 21180 ExecStartPre=/usr/libexec/mariadb-prepare-db-dir %n (code=exited, status=0/SUCCESS)
Main PID: 21208 (code=exited, status=0/SUCCESS)
Apr 29 05:57:20 HOST mysqld_safe[21208]: 150429 05:57:20 mysqld_safe Logging to '/var/log/mariadb/mariadb.log'.
Apr 29 05:57:20 HOST mysqld_safe[21208]: 150429 05:57:20 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
Apr 29 05:57:20 HOST mysqld_safe[21208]: 150429 05:57:20 mysqld_safe mysqld from pid file /var/run/mariadb/mariadb.pid ended
Apr 29 05:57:21 HOST systemd[1]: mariadb.service: control process exited, code=exited status=1
Apr 29 05:57:21 HOST systemd[1]: Failed to start MariaDB database server.
Apr 29 05:57:21 HOST systemd[1]: Unit mariadb.service entered failed state.
Apr 29 05:57:20 HOST mysqld_safe[21208]: 150429 05:57:20 mysqld_safe Logging to '/var/log/mariadb/mariadb.log'.
Apr 29 05:57:20 HOST mysqld_safe[21208]: 150429 05:57:20 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
Apr 29 05:57:20 HOST mysqld_safe[21208]: 150429 05:57:20 mysqld_safe mysqld from pid file /var/run/mariadb/mariadb.pid ended
Apr 29 05:57:21 HOST systemd[1]: mariadb.service: control process exited, code=exited status=1
Apr 29 05:57:21 HOST systemd[1]: Failed to start MariaDB database server.
Apr 29 05:57:21 HOST systemd[1]: Unit mariadb.service entered failed state.
Last edited: