Database connection error

Status
Not open for further replies.

albarc

New Member
Messages
11
Reaction score
0
Points
0
Hello,
My webpage is having some problems wit the database. It keeps showing this message:

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

Since i dont have do anything to my webpage, i think the problem should be in the server side. The address is albarugby.x0hosting.com. Thanks.
 

vishal

-::-X10 Guru-::-
Community Support
Messages
5,255
Reaction score
192
Points
63
Check whether your dbserver name is localhost
 

vishal

-::-X10 Guru-::-
Community Support
Messages
5,255
Reaction score
192
Points
63
Chopin is online.Which cPanel link did you use to login
 

Dark

Community Advocate
Community Support
Messages
1,975
Reaction score
29
Points
48
Try with this: http://x10hosting.com/forums/news-announcements/117672-mysql-errors-2.html#post665435

1. Log in to your cPanel
2. Under Databases category, click MySQL Databases
As you can see on the MySQL page, all databases are intact. The databases are there and also the users. But eventhough they are there, your site wasn't able to connect on the database. Follow the next step.
3. Locate the category which will allow you to add a user to the database. Add User To Database
4. Select the appropriate user and database you have used for your website and click the Add button. Note: Be sure to choose the correct one or it will not worked.
5. You will be redirected to the Manage User Privileges page, select ALL PRIVILEGES then click the Make Changes button.
6. If all are successful, your site will be working.

hope this helps.
 

Zubair

Community Leader
Community Support
Messages
8,766
Reaction score
305
Points
83
***Moved to Free Hosting***
 

albarc

New Member
Messages
11
Reaction score
0
Points
0
ok, i set ALL PRIVILEGES to the DB user and is online again. Thanks for the help!!!
 
Status
Not open for further replies.
Top