Skip to main content

Server crashed now - ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)

Comments

5 comments

  • kennysamuerto
    Hello, You offer little information, we should start from the basics. What error do you get when starting MySQL? Try to start MySQL from SSH, and in case of error, enter the command: journalctl -xe See the error log it tells you, to try to solve what is preventing MySQL from starting. Try also the command df -h, although it is a theory, I am afraid you may be out of space on your server. After that, let us know the results of the commands.
    0
  • kodeslogic
    I agree with kennysamuerto, more information will help to get better advice to fix the problem.
    0
  • shido
    Hi kennysamuerto and kodeslogic Here is the result root@host [~]# journalctl -xe -bash: journalctl: command not found root@host [~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda3 1.8T 1.2T 566G 67% / tmpfs 7.7G 0 7.7G 0% /dev/shm /dev/sda1 190M 71M 110M 39% /boot /usr/tmpDSK 3.9G 29M 3.6G 1% /tmp root@host [~]#
    0
  • cPanelAnthony
    Thirded; having this information would help
    0
  • shido
    I have migrated everything to a new server so this thread can be closed. I had to reinstall each data base individually.
    0

Please sign in to leave a comment.