Tuesday 4 December 2012

unable to establish connection to database

At once I was getting these kind of database errors "unable to establish connection to database" while accessing the websites with back door URLS like

http://severip/~username

I tried to restart mysql as well tried to recreate db users and passwords but no luck, finally got the solution as


The following option was turned on in /usr/local/lib/php.ini file: sql.safe_mode = On This option attempts to authenticate with the account username instead of the database username/password. I disabled this option, and restarted Apache and the links worked perfectly fine :)

0 comments:

Post a Comment