• Actually i want to migrate my wordpress to multisite. for that i have added new lines of codes on wp-config.php file. followed to that relogin to admin site then need to enable Network setup as per the wordpress guide line.

    once enable multisite. then while configure networksetup(admin: Tool-> Network Setup)

    that time need to update following line of code at wp-config.php

    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    define('DOMAIN_CURRENT_SITE', 'domain.com');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);

    and phpMyAdmin site

    i have modified at wp_option table itself
    home : http://hibrise.com
    siteurl : http://hibirse.com

    the final result is “Error establishing a database connection

Viewing 8 replies - 1 through 8 (of 8 total)
  • A mi me ocurrió lo mismo… ¿Pudiste solucionarlo?

    Thread Starter classicmohamed1431

    (@classicmohamed1431)

    not yet solved.

    please let me know once solved this error.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    http://www.hibrise.com/ loads.

    When you say you added this:
    define('DOMAIN_CURRENT_SITE', 'domain.com');

    You REALLY mean you did this, right?

    define('DOMAIN_CURRENT_SITE', 'www.hibrise.com');

    Also since you have WWW in your domain right now, you did not do this:

    i have modified at wp_option table itself
    home : http://hibrise.com
    siteurl : http://hibirse.com

    If you had, WP would be not using www right now 🙂

    Lo que a mi me ocurre es que cuando actualizo mi wordpress multisitio a la nueva versión me aparece el error en la base de datos como manifestaron anteriormente.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    MariaBelenSubiran – I’m really sorry but I don’t speak Spanish. We’re primarily English here 🙁

    What’s YOUR domain? May we see what’s happening?

    No habllo English, but google translator can perhaps help us communicate. I’m putting together the design of a site, which in my case is that when I update my wordpress multisite to new version I get the error in the Database As stated above.

    Thread Starter classicmohamed1431

    (@classicmohamed1431)

    Please forgot the domain “hibrise” i have given it as a example.

    Problem : “Error establishing a database connection”
    once i had done changes as you mentioned in reply (www).
    still.”Error establishing a database connection” remain

    phpmyAdd:
    home and siteurl : http://www.sparker.in

    wp-config.php

    define(‘WP_ALLOW_MULTISITE’,true);
    define(‘MULTISITE’, true);
    define(‘DOMAIN_CURRENT_SITE’, ‘www.sparker.in’);
    define(‘PATH_CURRENT_SITE’, ‘/’);
    define(‘SITE_ID_CURRENT_SITE’, 1);
    define(‘BLOG_ID_CURRENT_SITE’, 1);

    Current working output scenario :
    for example:
    wp-config.php:

    define(‘WP_ALLOW_MULTISITE’,true);
    define(‘MULTISITE’, true);
    define(‘DOMAIN_CURRENT_SITE’, ‘10.10.10.10’);
    define(‘PATH_CURRENT_SITE’, ‘/~sparkeri/’);
    define(‘SITE_ID_CURRENT_SITE’, 1);
    define(‘BLOG_ID_CURRENT_SITE’, 1);

    phpMyAdmin:
    home and siteurl : http://10.10.10.10/~sparkeri/

    Expecting outcomes is:
    (WPMU) WordPress MultiSite features
    http://www.sparker.in
    http://www.sparker.in/site1
    http://www.sparker.in/site2
    …etc.

    but,now if we used,
    http://www.sparker.com it will automatically redirect to (i.e) 10.10.10.10/~sparkeri/

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Are you moving your site AND enabling multisite at once?

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

The topic ‘Error establishing a database connection’ is closed to new replies.