• Hi all!
    I was trying to change my WP installation to multisite installation on LOCAL HOST following following steps:

    1. Adding following line to wp-config.php file above the /* That’s all, stop editing! Happy blogging. */ line.
    define( ‘WP_ALLOW_MULTISITE’, true );

    2. Completed Multisite installation after deactivating all the plugins.

    3. Added following lines (given by WP itself) to wp-config.php file:
    define(‘SUBDOMAIN_INSTALL’, false);
    define(‘DOMAIN_CURRENT_SITE’, ‘127.0.0.1’);
    define(‘PATH_CURRENT_SITE’, ‘/wp/’);
    define(‘SITE_ID_CURRENT_SITE’, 1);
    define(‘BLOG_ID_CURRENT_SITE’, 1);

    4. Added following lines (given by WP itself) to .htaccess file:
    # BEGIN WordPress

    RewriteEngine On
    RewriteBase /wp/
    RewriteRule ^index\.php$ – [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    # END WordPress

    5. Now I get following error:
    Connection to database could not be stablished.

    The error page itself directed me to repair my database by adding following extra line to wp-config.php file:
    define(‘WP_ALLOW_REPAIR’, true);

    6. After reparing (and optimizing) my tables using above step, I was issued instruction that “Some database problems could not be repaired. Please copy-and-paste the following list of errors to the WordPress support forums to get additional assistance.”

    wp_t7y3zsxy57_1_posts: Table ‘wpdatabase.wp_t7y3zsxy57_1_posts’ doesn’t exist
    wp_t7y3zsxy57_1_comments: Table ‘wpdatabase.wp_t7y3zsxy57_1_comments’ doesn’t exist
    wp_t7y3zsxy57_1_links: Table ‘wpdatabase.wp_t7y3zsxy57_1_links’ doesn’t exist
    wp_t7y3zsxy57_1_options: Table ‘wpdatabase.wp_t7y3zsxy57_1_options’ doesn’t exist
    wp_t7y3zsxy57_1_postmeta: Table ‘wpdatabase.wp_t7y3zsxy57_1_postmeta’ doesn’t exist
    wp_t7y3zsxy57_1_terms: Table ‘wpdatabase.wp_t7y3zsxy57_1_terms’ doesn’t exist
    wp_t7y3zsxy57_1_term_taxonomy: Table ‘wpdatabase.wp_t7y3zsxy57_1_term_taxonomy’ doesn’t exist
    wp_t7y3zsxy57_1_term_relationships: Table ‘wpdatabase.wp_t7y3zsxy57_1_term_relationships’ doesn’t exist
    wp_t7y3zsxy57_1_commentmeta: Table ‘wpdatabase.wp_t7y3zsxy57_1_commentmeta’ doesn’t exist

    So here I am! Can anyone put my nose in right direction please?

    Cheers!

  • The topic ‘Error while changing WP single site to multisite installation’ is closed to new replies.