Title: coderanger's Replies | WordPress.org

---

# coderanger

  [  ](https://wordpress.org/support/users/coderanger/)

 *   [Profile](https://wordpress.org/support/users/coderanger/)
 *   [Topics Started](https://wordpress.org/support/users/coderanger/topics/)
 *   [Replies Created](https://wordpress.org/support/users/coderanger/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/coderanger/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/coderanger/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/coderanger/engagements/)
 *   [Favorites](https://wordpress.org/support/users/coderanger/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Was working now getting “Error establishing a database connection”](https://wordpress.org/support/topic/was-working-now-getting-error-establishing-a-database-connection/)
 *  Thread Starter [coderanger](https://wordpress.org/support/users/coderanger/)
 * (@coderanger)
 * [19 years, 11 months ago](https://wordpress.org/support/topic/was-working-now-getting-error-establishing-a-database-connection/#post-395760)
 * It would actually have been useful if it gave the mysql error as once I created
   a test page it was clear what the problem was. Apparently there were not enough
   connections left … this seems odd, does WordPress not clean up properly possibly??
 * Anyway, for others, I just created a test page with the following code to make
   it easy to test for problems in the future:
 * `
    <?php
 * $connection = mysql_connect("serverip", "user", "pass")
    or die("Connection failed
   because: " . mysql_error()); print ("Connection succeeded"); mysql_close($connection);?
   >

Viewing 1 replies (of 1 total)