- Plesk Onyx
- Plesk for Linux
- Plesk for Windows
- The following error occurs on attempt to open example.com:
CONFIG_TEXT: Error displaying the error page: Application Instantiation Error: Could not connect to MySQL.
example.comis a Joomla!-based website.
- Mismatch of the password for database user specified in Joomla! configuration file and the one stored in MySQL database.
- Joomla! database does not exists in MySQL server.
There is a probability, that the server has been transferred to the current server using Joomla! native tools. Website Importing feature can help to avoid such behavior.
- Log into Plesk
- Browse to Domains > example.com > File Manager and open
./httpdocsis a DocumentRoot of the domain.
- In the
configuration.phpfind the directives for connection to the database:
CONFIG_TEXT: public $user = 'joomla_1';
public $password = 'password';
public $db = 'joomla_db';
Note: in the snippet above,
joomla_dbare the placeholders and the values can be different on real Joomla! installation
- Go to Domains > example.com > Databases > User Management and check if the user
joomla_1exists. If it does not create it by Add Database User button.
- Create user with the info from the
configuration.phpfile on Step 2:
- In case if joomla_1 user already exists, click on it in Domains > example.com > Databases > User Management and specify the password taken from
configuration.phpfile on Step 2.
For a second case, browse to Domains > example.com > Databases and verify that database
exists. If it does not, restore it from a Plesk backup or import a valid database using Plesk Import Database feature