The MU forums have moved to WordPress.org

How to install Multi-DB? (4 posts)

  1. thiswell
    Member
    Posted 13 years ago #

    <?php
    // Plugin Name: Multi-DB
    // Plugin URI: http://premium.wpmudev.org/project/Multiple-Databases
    // Author: Andrew Billits (Incsub)
    // Version: 2.7.0
    define ('DB_SCALING', '16');
    add_dc_ip('127.0.0.1.', 'dc1');
    add_global_table('WPMUDB_ceo');
    add_db_server('WPMUDB', 'dc1', 1, 1,'localhost','localhost','WPMUDB_ceo', 'WPMUDB_ceo', '*****');
    add_db_server('0', 'dc1', 1, 1,'localhost','localhost', 'WPMUDB_ceo0', 'WPMUDB_ceo', '*****');
    add_db_server('1', 'dc1', 1, 1,'localhost','localhost', 'WPMUDB_ceo1', 'WPMUDB_ceo', '*****');
    add_db_server('2', 'dc1', 1, 1,'localhost','localhost', 'WPMUDB_ceo2', 'WPMUDB_ceo', '*****');
    add_db_server('3', 'dc1', 1, 1,'localhost','localhost', 'WPMUDB_ceo3', 'WPMUDB_ceo', '*****');
    add_db_server('4', 'dc1', 1, 1,'localhost','localhost', 'WPMUDB_ceo4', 'WPMUDB_ceo', '*****');
    add_db_server('5', 'dc1', 1, 1,'localhost','localhost', 'WPMUDB_ceo5', 'WPMUDB_ceo', '*****');
    add_db_server('6', 'dc1', 1, 1,'localhost','localhost', 'WPMUDB_ceo6', 'WPMUDB_ceo', '*****');
    add_db_server('7', 'dc1', 1, 1,'localhost','localhost', 'WPMUDB_ceo7', 'WPMUDB_ceo', '*****');
    add_db_server('8', 'dc1', 1, 1,'localhost','localhost', 'WPMUDB_ceo8', 'WPMUDB_ceo', '*****');
    add_db_server('9', 'dc1', 1, 1,'localhost','localhost', 'WPMUDB_ceo9', 'WPMUDB_ceo', '*****');
    add_db_server('a', 'dc1', 1, 1,'localhost','localhost', 'WPMUDB_ceoa', 'WPMUDB_ceo', '*****');
    add_db_server('b', 'dc1', 1, 1,'localhost','localhost', 'WPMUDB_ceob', 'WPMUDB_ceo', '*****');
    add_db_server('c', 'dc1', 1, 1,'localhost','localhost', 'WPMUDB_ceoc', 'WPMUDB_ceo', '*****');
    add_db_server('d', 'dc1', 1, 1,'localhost','localhost', 'WPMUDB_ceod', 'WPMUDB_ceo', '*****');
    add_db_server('e', 'dc1', 1, 1,'localhost','localhost', 'WPMUDB_ceoe', 'WPMUDB_ceo', '*****');
    add_db_server('f', 'dc1', 1, 1,'localhost','localhost', 'WPMUDB_ceof', 'WPMUDB_ceo', '*****');

    //------------------------------------------------------------------------//
    //---VIP Blogs------------------------------------------------------------//
    //------------------------------------------------------------------------//
    // Usage: add_vip_blog(BLOG_ID, DS)
    // EX: add_vip_blog(1, 'vip1');

    Above Our db-config.php.

    Error list are below

    [Sun Apr 26 21:57:32 2009] [error] [client 125.177.95.154] PHP Warning: Invalid argument supplied for foreach() in /home/buddyceo/buddyceo.com/html/wp-content/db.php on line 770
    [Sun Apr 26 21:57:32 2009] [error] [client 125.177.95.154] WordPress database error No database selected for query SELECT * FROM wp_blogs WHERE domain = 'buddyceo.com' made by require_once
    [Sun Apr 26 21:57:32 2009] [error] [client 125.177.95.154] PHP Warning: Invalid argument supplied for foreach() in /home/buddyceo/buddyceo.com/html/wp-content/db.php on line 750
    [Sun Apr 26 21:57:32 2009] [error] [client 125.177.95.154] PHP Warning: Invalid argument supplied for foreach() in /home/buddyceo/buddyceo.com/html/wp-content/db.php on line 770
    [Sun Apr 26 21:57:32 2009] [error] [client 125.177.95.154] WordPress database error No database selected for query SELECT * FROM wp_blogs WHERE domain = 'buddyceo.com' made by require_once
    .
    .
    .
    and repeat

  2. tdjcbe
    Member
    Posted 13 years ago #

    Best bet would be to ask on their forums:

    http://premium.wpmudev.org/forums/

    It may be helpful if you walked through what specific steps you did. There's instructions included in the download.

  3. andrewbillits
    Member
    Posted 13 years ago #

    Yep, you'll need to post in the premium forums. We don't provide support for our plugins here. It's similar to how a wpmu admin shouldn't send their users here for support.

    Thanks,
    Andrew

  4. tdjcbe
    Member
    Posted 13 years ago #

    But they do. :)

    (And the regular wp.org forums)

About this Topic