+ Reply to Thread
Results 1 to 1 of 1
-
Administrator
- Join Date
- Mar 2010
- Posts
- 76
Error establishing a database connection or Database Unavailable
Guys,
I got the below given error in one of our Dedicated Server.
On a first look, it looked as a simple issue which we used to face regularly [ User does not have proper privileges on Database]“Error establishing a database connection or unavailable to database “
But all the domains in the server were having the same issue.
I tried :
>> Granting proper privileges >> Trying to connect DB from backend and it was connecting.
Finally I concluded issue is not related to Mysql and for checking moved php.ini and tried the domains and all the domains were loading fine.
So the issue was related to PHP.
I noticed that sql.safe mode was ON in the php.ini in the server.
I tried disabling sql.safe mode and the issue got resolved.
============== sql.safe_mode = Off ==============


LinkBack URL
About LinkBacks



Reply With Quote