ciitbic

Registered
Nov 17, 2020
3
0
1
lagos
cPanel Access Level
Root Administrator
I uploaded a database website on a live server, but database could not connect,. I have created user sync cpanel password with mysql, yet not connected. please I need help
 

kodeslogic

Well-Known Member
Apr 26, 2020
142
49
103
IN
cPanel Access Level
Root Administrator
Have you checked the database configuration file of your website, It should contain the correct information to connect to the database? An example of a WordPress site correct file is "wp-config.php".
 

cPanelAaronH

Well-Known Member
Staff member
Dec 31, 2014
70
19
133
Houston Texas
cPanel Access Level
Root Administrator
Hello,

You may want to enable debugging as well to see if this helps.

In your wp-config.php file in your WordPress installation directory:

Code:
define('WP_DEBUG', false);
to be "true" like below:

Code:
define('WP_DEBUG', true);

That should help figure out why it is unable to connect.
 

ffeingol

Well-Known Member
PartnerNOC
Nov 9, 2001
494
144
343
cPanel Access Level
DataCenter Provider
Have you checked everything in the connection data that you are using? If you have shell access, you can use all the parameters from your connection (host, user, password, database name) in command line mysql to test it. If you are sure that the user, password and database are correct, I'd double check if it's using a host name. We just helped a customer that had a similar issue and they had a hard coded hostname (to their old server).