Articles in this section

Unable to access Plesk when MySQL/MariaDB database server service is stopped: SQLSTATE[HY000] [2002] No such file or directory

Plesk for Linux kb: technical

Applicable to:

  • Plesk for Linux

Symptoms

Plesk is not accessible:

PLESK_INFO: Server Error
500 Plesk\Exception\Database
DB query failed: SQLSTATE[HY000] [2002] No such file or directory
Type Plesk\Exception\Database
Message DB query failed: SQLSTATE[HY000] [2002] No such file or directory
File Mysql.php
Line 79

Cause

MySQL / MariaDB service is stopped:

# service mariadb status | grep Active
Active: inactive (dead) since ...

Resolution

  1. Connect to your Plesk server via SSH.

  2. Strat the database server service:

    • MariaDB:

      # service mariadb start

    • MySQL:

      # service mysql start

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.