Title: Database connection error
Last modified: August 20, 2016

---

# Database connection error

 *  [Bhushan11](https://wordpress.org/support/users/bhushan11/)
 * (@bhushan11)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/database-connection-error-18/)
 * Hi,
    I have hosted my wordpress blog on bigrock. It was running smoothly but 
   now it is showing a message as ‘error establishing a database connection’ i have
   not made any changes in the config file.

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

 *  [Brad Markle](https://wordpress.org/support/users/imh_brad/)
 * (@imh_brad)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/database-connection-error-18/#post-2448738)
 * Hi Bhushan11, if everything has been running smoothly and then suddenly stopped,
   I would suspect that your web host is having a problem with their database server.
   I recommend contacting them first. After you can rule out the fact that your 
   web host is not having a problem with MySQL, then we can take a stab at looking
   at WordPress itself to see what may be going wrong.
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [14 years, 5 months ago](https://wordpress.org/support/topic/database-connection-error-18/#post-2448755)
 * If SQL is running fine, go in and run a repair of the database via phpMyAdmin.
 *  [Brad Markle](https://wordpress.org/support/users/imh_brad/)
 * (@imh_brad)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/database-connection-error-18/#post-2448948)
 * Hi Bhushan11, were you able to make any progress on the database connection issue?
   Keep us updated, as if Ipstenu’s nor my own suggestion helped, there may be some
   other troubleshooting steps we can take.
 *  [ravimallya](https://wordpress.org/support/users/ravimallya/)
 * (@ravimallya)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/database-connection-error-18/#post-2448951)
 * Bhushan11, have you tried to connect to the database using a normal php connection
   string?
 *     ```
       <?php
       $link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
       if (!$link) {
           die('Could not connect: ' . mysql_error());
       }
       echo 'Connected successfully';
       mysql_close($link);
       ?>
       ```
   
 * change database information and if u received any error, contact your host.
 *  Thread Starter [Bhushan11](https://wordpress.org/support/users/bhushan11/)
 * (@bhushan11)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/database-connection-error-18/#post-2448967)
 * Thanks a lot guys..!! just coz it suddenly disappeared i got panicked :).. Brad’s
   suggestion worked out and i found there was a problem with the web host. Thanks
   again, all your support is appreciated!! 🙂
 *  [Brad Markle](https://wordpress.org/support/users/imh_brad/)
 * (@imh_brad)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/database-connection-error-18/#post-2448971)
 * Glad to hear it is resolved Bhushan11!

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

The topic ‘Database connection error’ is closed to new replies.

## Tags

 * [database connection error](https://wordpress.org/support/topic-tag/database-connection-error/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 4 participants
 * Last reply from: [Brad Markle](https://wordpress.org/support/users/imh_brad/)
 * Last activity: [14 years, 5 months ago](https://wordpress.org/support/topic/database-connection-error-18/#post-2448971)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
