Unable to connect to database

Status
Not open for further replies.

ericrb21

New Member
Messages
2
Reaction score
0
Points
0
Hi, today I tried to go on my site but I get this error : Database Error: Unable to connect to the database:Could not connect to database. My site worked before and I didn't do any modification after that. Can you tell me what I need to do?
 
Last edited:

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Please try:

1. cPanel --> MySQL Databases

Current Databases

aaa_jo151 0.00 MB aaa_jo151 X Delete Database

Click on the user
Check ALL PRIVILEGES on the next screen Even if all the other boxes are checked, check "ALL"
Click "Save Changes"
Repeat for all db users

2. If that does not work, your blog/CMS/forum software should have a file named settings or config or configuration (.php or .ini). Open it up and make sure it sets the database host to 'localhost', nothing else. It should be around the other settings for the database.
 

ericrb21

New Member
Messages
2
Reaction score
0
Points
0
Please try:

1. cPanel --> MySQL Databases

Current Databases

aaa_jo151 0.00 MB aaa_jo151 X Delete Database

Click on the user
Check ALL PRIVILEGES on the next screen Even if all the other boxes are checked, check "ALL"
Click "Save Changes"
Repeat for all db users

2. If that does not work, your blog/CMS/forum software should have a file named settings or config or configuration (.php or .ini). Open it up and make sure it sets the database host to 'localhost', nothing else. It should be around the other settings for the database.

Thanks! I checked "All privileges" and it worked.
 

Zubair

Community Leader
Community Support
Messages
8,766
Reaction score
305
Points
83
Your problem is resolved Now. So I am going to close this thread to mark it as resolved. Feel free to create a new thread if you need more help.

***Thread Closed***
 
Status
Not open for further replies.
Top