Symptoms
- When clicking on the Add Database button within and Subscription in Plesk, the following error message is shown:
Error: There are no database servers available for this subscription.
-
When opening the WP Toolkit in the Plesk GUI, one of the following error messages is shown:
Your hosting plan does not allow you to create any more databases. This WordPress installation will use an existing database instead of creating a new one.
external Server Error: PleskExtWpToolkitHelperDb::makeUniqueDbName(): Argument #1 ($dbServerId) must be of type int, null given, called in /usr/local/psa/admin/plib/modules/wp-toolkit/library/Helper/Install/PleskInstallTargetDatabase.php on line 144
Cause
A default MySQL server is not set for the Subscription on which the database creation attempt is made.
Resolution
Synchronize the Subscription that is experiencing the issue with its Service plan:
-
Log into your server via SSH
-
Synchronize the affected Subscription with its Service plan by executing the following command:
# plesk bin subscription --sync-subscription example.com
Click on a section to expand
If the issue persists
Restore the database server for the Subscription by executing the following these steps:
-
Go to Service plans > Service_Plan_Name > Hosting Parameters and set the Default Database Server to none and press OK
-
Go to Service plans > Service_Plan_Name > Hosting Parameters and set the Default Database Server to localhost (MariaDB) and press OK