Quick search
Search

DataBase error connect

DataBase error connect.
A database error connect can occur during site migration or during CMS installation without installation support.

Issues and resolving DB error connect.

1. MySql user not assigned or not created


Click "MySQL® Databases" in your cPanel.

Check the user in your database (assigned/created)

Add User To Database. If the database username is not displayed, then you need to assign a user in the "Add User To Database" (form at the down page).

Create the user and add to the DB if it has not been created.

2. Database connection data is incorrect

Check the data of the database connect in MySql connection file.
For example "wp-config.php" in WordPress or "configuration.php" for Joomla.

For example, on a WordPress site, You need to open the file "config.php" for editing.

Connecting lines

define('DB_NAME', 'database name');
define('DB_USER', 'user login');
define('DB_PASSWORD', 'user password');
define('DB_HOST', 'localhost');

Important:
DB_HOST - must be localhost

DB_NAME - you can check the Database name in "MySQL® Databases"


DB_USER - you can check the Database username in "MySQL® Databases"
If the Database name and Database username are correct, but the connection error persists, that You can try resetting the password.
In line:
define('DB_PASSWORD', 'user password');
Copy Your password and re-save it in the cPanel/MySQL® Databases/Current Users

If the connection error has been saved, please create a ticket in your Client Area in the "Technical Support"