Command "plesk repair installation" fails: SQLSTATE[HY000] [2002] No such file or directory

Follow

Comments

2 comments

  • Avatar
    Michael Stuart

     

    [root@1stonline ~]# plesk db "SET GLOBAL sql_mode = 'ONLY_FULL_GROUP_BY,NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'"

    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
    exit status 1

  • Avatar
    Ivan Postnikov

    @Michael, such error is usually shown when MySQL server is down.

    This issue may have a variety of causes.

    Try using this articles 1 2.

Please sign in to leave a comment.

Have more questions? Submit a request