Title: Database error when enabling mutlisite
Last modified: August 19, 2016

---

# Database error when enabling mutlisite

 *  Resolved [BSPBrent](https://wordpress.org/support/users/bspbrent/)
 * (@bspbrent)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/database-error-when-enabling-mutlisite/)
 * I’m trying to setup network blog support so I can host multiple blogs in one 
   install using subdirectories. Everything seems to go smoothly, right up to the
   point when I enable network blog support and have to re-login in. Instead of 
   a getting a login page, I get a page “Error establishing a database connection”.
   
   Obviously there is not issue connecting to the database, since the initial install
   went fine. If I try to go to the wp-admin directory, then I get an error “One
   or more database tables are unavailable”. I enabled repair and tried repairing,
   but that fails with error that the tables don’t exist (i.e. de_2_posts, de_2_comments,
   de_2_links,…). I’m tempted to create those tables manually to see what happens,
   but I shouldn’t have to.
 * I can turn multisite support off and everything works fine as a single instance,
   so this is not a database connection issue. I do have control over the server,
   but I am not installing in the root directory. The install URL is blog/de/
 * >  define(‘WP_ALLOW_MULTISITE’, true);
   >  define(‘MULTISITE’, true); define(‘SUBDOMAIN_INSTALL’,
   > false);

Viewing 2 replies - 31 through 32 (of 32 total)

[←](https://wordpress.org/support/topic/database-error-when-enabling-mutlisite/page/2/?output_format=md)
[1](https://wordpress.org/support/topic/database-error-when-enabling-mutlisite/?output_format=md)
[2](https://wordpress.org/support/topic/database-error-when-enabling-mutlisite/page/2/?output_format=md)
3

 *  [nuroweb](https://wordpress.org/support/users/nuroweb/)
 * (@nuroweb)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/database-error-when-enabling-mutlisite/page/3/#post-1915731)
 * I had the same issue, but it was caused by a stupid error on my part. I’m posting
   my solution here in case it can help other people that did the same error.
 * I added the folwing line of code tp wp-config.php to enable multi-site in the
   admin/tools menu:
 * `define('WP_ALLOW_MULTISITE', true);`
 * When I enable network and it asked me to put more code in the wp-config.php, 
   the first line was:
 * `define( 'MULTISITE', true );`
 * I read too quickly and tought this was the same line and didn’t put it. I got
   the same error as the original poster of this thread.
 *  [bill_mcgonigle](https://wordpress.org/support/users/bill_mcgonigle/)
 * (@bill_mcgonigle)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/database-error-when-enabling-mutlisite/page/3/#post-1915739)
 * [@nuroweb](https://wordpress.org/support/users/nuroweb/): gosh, I did the same
   stupid thing. Thanks for posting!

Viewing 2 replies - 31 through 32 (of 32 total)

[←](https://wordpress.org/support/topic/database-error-when-enabling-mutlisite/page/2/?output_format=md)
[1](https://wordpress.org/support/topic/database-error-when-enabling-mutlisite/?output_format=md)
[2](https://wordpress.org/support/topic/database-error-when-enabling-mutlisite/page/2/?output_format=md)
3

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

## Tags

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

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 32 replies
 * 8 participants
 * Last reply from: [bill_mcgonigle](https://wordpress.org/support/users/bill_mcgonigle/)
 * Last activity: [14 years, 10 months ago](https://wordpress.org/support/topic/database-error-when-enabling-mutlisite/page/3/#post-1915739)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
