Database Error: Unable to connect to the database:Could not connect to MySQL

Status
Not open for further replies.

misson

Community Paragon
Community Support
Messages
2,572
Reaction score
72
Points
48
We're going to need more information. Post a minimal example of your connection code, being sure to censor any private information, such as your DB password. You can partially censor the DB username, but there should be enough to show you're using the correct kind of name (cpanel username + "_" + db username, e.g. "genealogy_xxxx").

You can always try a sledgehammer approach, deleting then re-adding the user or (failing that) your databases and tables, but that's what you do when you can't think of anything else.
 
Last edited:

Brandon

Former Senior Account Rep
Community Support
Messages
19,181
Reaction score
28
Points
48
This has been resolved, thanks for using x10Hosting.
 
Status
Not open for further replies.
Top