Plesk

All sites on a Plesk server are inaccessible while a backup creation task is running: Error establishing a database connection

Symptoms

Cause

Mysqldump locks all tables, and after that performs a data backup, which leads to the growth of number of connections waiting in a queue, and to the error when the defined max_user_connections value is reached.

Resolution

  1. Connect to the server via SSH.

  2. Customize behaviour of mysqldump used by Backup Manager by adding the following options in /etc/my.cnf (CentOS/RHEL) or /etc/mysql/my.cnf(Debian/Ubuntu):

    [mysqldump]
    skip-lock-tables
    single-transaction