• <?php
    // Plugin Name: Multi-DB
    // Plugin URI: https://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

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to install Multi-DB?’ is closed to new replies.