MySQL database error
Posted: Thu Sep 22, 2016 1:07 pm
We are having database issues and tried to run the database repair script, but the script is failing to stop the mysqld service. We also cant stop it manually without the script. We are seeing the following errors in the syslog:
Error: Could not connect to MySQL database: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Sep 22 14:01:27 xxxxxxxx nagios: ndomod: Error writing to data sink! Some output may get lost. 4832 queued items to flush.
Sep 22 14:01:43 xxxxxxxx nagios: ndomod: Successfully reconnected to data sink! 935 items lost, 5000 queued items to flush.
Any idea on what caused this or how to fix it?
Error: Could not connect to MySQL database: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Sep 22 14:01:27 xxxxxxxx nagios: ndomod: Error writing to data sink! Some output may get lost. 4832 queued items to flush.
Sep 22 14:01:43 xxxxxxxx nagios: ndomod: Successfully reconnected to data sink! 935 items lost, 5000 queued items to flush.
Any idea on what caused this or how to fix it?