Unable to access Plesk, page shows error:
Error message or request description : ERROR: PleskFatalException Unable to connect to database: mysql_connect() function.mysql-connect: Permission denied
MySQL service failed trying to restart.
/var/log/mysqld.log these errors can be found:
[ERROR] /usr/libexec/mysqld: Can't create/write to file '/var/run/mysqld/mysqld.pid' (Errcode: 13) [ERROR] Can't start server: can't create PID file: Permission denied
Wrong permissions on
Make sure that owner and group of
mysql:mysqland permissions are as below:
# ls -ld /var/run/mysqld/ drwxr-xr-x 2 mysql mysql 4096 Jul 14 18:16 /var/run/mysqld/
- Correct permissions and start Mysql service.