• Resolved BSPBrent

    (@bspbrent)


    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)
  • 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.

    @nuroweb: gosh, I did the same stupid thing. Thanks for posting!

Viewing 2 replies - 31 through 32 (of 32 total)
  • The topic ‘Database error when enabling mutlisite’ is closed to new replies.