Title: Database error
Last modified: August 19, 2016

---

# Database error

 *  Resolved [sidea](https://wordpress.org/support/users/sidea/)
 * (@sidea)
 * [16 years ago](https://wordpress.org/support/topic/database-error-45/)
 * Calling all cleverer than me….
    Supposing that there once was an idiot! And perhaps
   he was in the process of installing a new WordPress site. Believing he was clever
   he logged into the control panel of his hosting company, and he noted the long
   and complicated U/N and P/W details of his relevant MYSQL database. He then edited
   his wp-config file based on the above, saved the file, uploaded it on ftp and
   subsequently navigated to [http://www.domain_name/wp-admin/install.php](http://www.domain_name/wp-admin/install.php)
   and received a “Error establishing a database connection”. Where might this idiot
   have made an error? If you let me know I will be sure that he gets the message.
   Kindest regards
 * Friend of an idiot…

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years ago](https://wordpress.org/support/topic/database-error-45/#post-1489076)
 * He may have incorrectly transcribed the long and complicated U/N and P/W details
   of his relevant MYSQL database into his wp-config.php file. I’d suggest he doublechecks
   this file and also ensures that he is using the correct MySQL host name.
 *  Thread Starter [sidea](https://wordpress.org/support/users/sidea/)
 * (@sidea)
 * [16 years ago](https://wordpress.org/support/topic/database-error-45/#post-1489130)
 * Thanks Esmi, I passed this on to my hard of learning friend and he found a rogue
   hash stroke on his U/N. He then emtied the folders on the offending db after 
   a prompt from wp but he now gets the following error from wp maintenance:
 * The wp_commentmeta table is not okay. It is reporting the following error: Table‘
   stbocouk_446565_db1.wp_commentmeta’ doesn’t exist. WordPress will attempt to 
   repair this table…
    Failed to repair the wp_commentmeta table. Error: Table ‘
   stbocouk_446565_db1.wp_commentmeta’ doesn’t exist
 * He has contacted the hosting company but suspects he won’t get much joy there…
 * Any thoughts?
 *  Thread Starter [sidea](https://wordpress.org/support/users/sidea/)
 * (@sidea)
 * [16 years ago](https://wordpress.org/support/topic/database-error-45/#post-1489134)
 * Doh!
 * I then deleted the folders on the db in readiness for the new ones and it all
   worked!
 * Did I say I, I meant to say my friend then did that eh!
 * Thanks for your help.

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

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

## Tags

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

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 3 replies
 * 2 participants
 * Last reply from: [sidea](https://wordpress.org/support/users/sidea/)
 * Last activity: [16 years ago](https://wordpress.org/support/topic/database-error-45/#post-1489134)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
