Plesk

Unable to register remote MySQL/MariaDB server in Plesk: Host is not allowed to connect to this MySQL server

Symptoms

Cause

'root' user is not allowed to access the MySQL/MariaDB database server remotely.

Resolution

Log in to the MySQL/MariaDB on the remote database server and create a user who is allowed to access database server remotely from 203.0.113.2:

mysql> CREATE USER 'root'@'203.0.113.2' IDENTIFIED BY 'root_password';
mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'203.0.113.2' WITH GRANT OPTION;
mysql> FLUSH PRIVILEGES;

Or a database user who can access the server from any host:

mysql> CREATE USER 'root'@'%' IDENTIFIED BY 'root_password';
mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;
mysql> FLUSH PRIVILEGES;

Exit mobile version