Title: Host updated SQL and PHP now a Database Error
Last modified: August 19, 2016

---

# Host updated SQL and PHP now a Database Error

 *  Resolved [keenandgraev](https://wordpress.org/support/users/keenandgraev/)
 * (@keenandgraev)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/host-updated-sql-and-php-now-a-database-error/)
 * My host upgraded PHP and SQL this morning and now my site is telling me: Error
   establishing a database connection.
 * My site was working perfectly right until the update. Here is some information:
 * URL: [http://www.keenandgraev.com](http://www.keenandgraev.com)
    Version: 2.5
 * Apache version 2.0.63
    PHP version 5.2.5 MySQL version 5.0.51a-community
 * Any help is appreciated.

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Thread Starter [keenandgraev](https://wordpress.org/support/users/keenandgraev/)
 * (@keenandgraev)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/host-updated-sql-and-php-now-a-database-error/#post-752284)
 * I want to add that as far as I know my information in the config.php is 100% 
   accurate. It has worked fine for 2 years. The problem only came about after my
   host upgraded PHP and mySQL.
 * Is there anything I can do to fix this?
 *  Thread Starter [keenandgraev](https://wordpress.org/support/users/keenandgraev/)
 * (@keenandgraev)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/host-updated-sql-and-php-now-a-database-error/#post-752315)
 * I tried a new install for the heck of it. Used fantastico to install and the 
   same error occurs with a new install in a different directory.
 * What could this possibly be? Something wrong with my host?
 *  [haochi](https://wordpress.org/support/users/haochi/)
 * (@haochi)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/host-updated-sql-and-php-now-a-database-error/#post-752322)
 * 99% sure is either something wrong with your host or your wp-config, double check
   your database’s password and/or contact your host.
 *  Thread Starter [keenandgraev](https://wordpress.org/support/users/keenandgraev/)
 * (@keenandgraev)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/host-updated-sql-and-php-now-a-database-error/#post-752333)
 * Nothing is wrong with the config because I have not changed a thing. It worked
   for 12+ months no problem. Not until my host upgraded to Mysql5 and php5 did 
   it suddenly deliver the “Error establishing a database connection” message. On
   top of that having a fresh automatic fantastico install get the same problem…
   is not a coincidence.
 * Does WordPress have compatibility issues with Mysql 5 or Php 5 that would be 
   causing this?
 *  [haochi](https://wordpress.org/support/users/haochi/)
 * (@haochi)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/host-updated-sql-and-php-now-a-database-error/#post-752339)
 * Well, maybe your host changed the database info during the upgrading process?
   Check with them.
 *  Thread Starter [keenandgraev](https://wordpress.org/support/users/keenandgraev/)
 * (@keenandgraev)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/host-updated-sql-and-php-now-a-database-error/#post-752343)
 * Turns out my host had a SQL socket layer down… or something like that. Issues
   was completely unrelated to wordpress. (Thank god)
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/host-updated-sql-and-php-now-a-database-error/#post-752349)
 * _Issues was completely unrelated to wordpress_
 * That was very clear form the first sentence of your original post…

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Host updated SQL and PHP now a Database Error’ is closed to new replies.

## Tags

 * [databse error](https://wordpress.org/support/topic-tag/databse-error/)
 * [mysql 5](https://wordpress.org/support/topic-tag/mysql-5/)
 * [PHP 5](https://wordpress.org/support/topic-tag/php-5/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 3 participants
 * Last reply from: [moshu](https://wordpress.org/support/users/moshu/)
 * Last activity: [18 years, 1 month ago](https://wordpress.org/support/topic/host-updated-sql-and-php-now-a-database-error/#post-752349)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
