Title: Database Error on CLean install
Last modified: August 21, 2016

---

# Database Error on CLean install

 *  Resolved [Shaun Williams](https://wordpress.org/support/users/eangulus/)
 * (@eangulus)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/database-error-on-clean-install/)
 * Let me describe the setup first.
 * I have a local dev server (Ubuntu Server 12.10) on my network.
 * Runs Apache and MySQL and all the usual stuff.
 * Had a wordpress install under a sub directory.
 * Was working fine.
 * I stuff up some things in the code and decided to reset the wordpress install.
 * Deleted the tables from the database, deleted all the files and copied in clean
   wordpress 3.6.1
 * Instead of going thru the database connection details etc, it is simply showing
   as a database connection error.
 * I know it sounds like a caching issue but here is what I have tried so far.
 * Deleted Cache.
    Tried in different browsers (IE, Firefox & Chrome) Searched for
   hidden files (there is no .htaccess etc in the directory). Restarted Apache and
   MySQL Moved the wordpress files to a another directory, works as intended.
 * I know I can simply change the directory name to something else, but it is really
   bugging me as to why it worked before and not now.
 * Anyone with any ideas?

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

 *  Thread Starter [Shaun Williams](https://wordpress.org/support/users/eangulus/)
 * (@eangulus)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/database-error-on-clean-install/#post-4126943)
 * Just an update and maybe an issue.
 * Worked out that it was a file in my root wp-config.php
 * If I am installing under a sub directory, why is it trying to use a file in the
   directory above it?
 * Doesn’t make sense. It should only be reading the directory its in.
 *  [Łukasz](https://wordpress.org/support/users/edker/)
 * (@edker)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/database-error-on-clean-install/#post-4127126)
 * Thanks!

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

The topic ‘Database Error on CLean install’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Łukasz](https://wordpress.org/support/users/edker/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/database-error-on-clean-install/#post-4127126)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
