Why am I receiving a 'Cannot Connect to Database' error?

Receiving a 'Cannot Connect to Database' error indicates that the database settings entered in the configuration files are somehow incorrect. Here are a few things you may want to confirm:

Does the database exist, and is is spelled correctly?
Does the database user exist?
Is the database user assigned to the database?
Is the password in the settings the current password for the database user?

So long as these basic settings are in place and correct, this should resolve a 'Cannot Connect to Database' error.


For further information:
Please refer to the cPanel documentation for database features, here: https://documentation.cpanel.net/display/68Docs/MySQL+Databases

 

  • mysql, database, error
  • 0 Utilizadores acharam útil
Esta resposta foi útil?

Artigos Relacionados

What is phpMyAdmin and how do I access it?

phpMyAdmin is a PHP-based MySQL database administration utility which can be used to modify and...

Creating MySQL databases

(cPanel) To create a MySQL database: Go to MySQL Databases in your cPanel Under 'Create New...

Using PHP 5.3 or Prior

While our shared servers do allow for the selection of multiple PHP versions, we highly recommend...

Is ImageMagick available at HostRocket?

Yes. We can install ImageMagick on any/all servers upon request, and most of our servers already...

Cron Jobs

Cron Jobs are a utility designed to execute programs (usually maintainence tasks) automatically...