Mysql service cannot be started during Plesk update: ERROR 2002 (HY000): Can't connect to local MySQL server through socket




  • Avatar
    suzie rosen


    After following all the steps above I'm still getting this error:

    # ls -la /usr/lib/systemd/system/mariadb.service
    ls: cannot access '/usr/lib/systemd/system/mariadb.service': No such file or directory
    Comment actions Permalink
  • Avatar
    Nelson Leiva

    Hi suzie rosen,

    Do you have MariaDB service enabled? What is the output of the below commands (in that order one by one)?

    systemctl daemon-reload
    systemctl start mariadb
    systemctl status -l mariadb

    Comment actions Permalink
  • Avatar
    Juan Ponce

    root@web12:~# systemctl daemon-reload
    root@web12:~# systemctl start mariadb
    Failed to start mariadb.service: Unit mariadb.service not found.
    root@web12:~# systemctl status -l mariadb
    ● mariadb.service
       Loaded: not-found (Reason: Unit mariadb.service not found.)
       Active: failed (Result: exit-code) since Thu 2022-09-22 13:13:46 CEST; 2h 58min ago
     Main PID: 105238 (code=exited, status=7)
       Status: "MariaDB server is down"

    Sep 22 13:13:44 systemd[1]: Starting MariaDB 10.3.36 database server...
    Sep 22 13:13:44 mysqld[105238]: 2022-09-22 13:13:44 0 [Note] /usr/sbin/mysqld (mysqld 10.3.36-MariaDB-0+deb10u1) starting as process 105238 ...
    Sep 22 13:13:46 systemd[1]: mariadb.service: Main process exited, code=exited, status=7/NOTRUNNING
    Sep 22 13:13:46 systemd[1]: mariadb.service: Failed with result 'exit-code'.
    Sep 22 13:13:46 systemd[1]: Failed to start MariaDB 10.3.36 database server.

    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request