- Plesk 12.5 for Linux
How to make MySQL available for chrooted Plesk users?
First of all, it is not recommended to give the access to MySQL in chrooted environment as it is designed to isolate a user from any system services.
- Follow the instructions from article #213909545
Create the following folder for required domain:
# mkdir -p /var/www/vhosts/example.com/var/run/mysqld
Bind MySQL socket to the folder:
# mount --bind /var/run/mysqld /var/www/vhosts/example.com/var/run/mysqld