How to install Multi-DB?

<?php

// Plugin Name: Multi-DB

// Plugin URI: https://wpmudev.com/project/Multiple-Databases

// Author: Andrew Billits (Incsub)

// Version: 2.7.0

//


//

//—DB Scaling


//

//


//

// 16,256,4096

define (‘DB_SCALING’, ’16’:wink:;

//


//

//—DC IPs


//

//


//

// Usage: add_dc_ip(IP, DC)

// EX: add_dc_ip(‘123.123.123.’, ‘dc1’:wink:;

add_dc_ip(‘118.129.170.47’, ‘dc1’:wink:;

//


//

//—Global Tables


//

//


//

// Do not include default global tables

// Leave off base prefix (eg: wp_)

//

// Usage: add_global_table(TABLE_NAME)

// EX: add_global_table(‘something’:wink:;

add_global_table(‘buddyceo_ceo’:wink:;

//


//

//—DB Servers


//

//


//

// Database servers grouped by dataset.

// R can be 0 (no reads) or a positive integer indicating the order

// in which to attempt communication (all locals, then all remotes)

//

// Usage: add_db_server(DS, DC, READ, WRITE, HOST, LAN_HOST, NAME, USER, PASS)

// EX: add_db_server(‘global’, ‘dc1′, 1, 1,’global.mysql.example.com:3509′,’global.mysql.example.lan:3509’, ‘global-db’, ‘globaluser’, ‘globalpassword’:wink:;

//

// Note: you can also place this section in a file called db-list.php in wp-content

// EX: add_db_server(‘global’, ‘dc1′, 1, 1,’global.mysql.example.com:3509′,’global.mysql.example.lan:3509’, ‘global-db’, ‘globaluser’, ‘globalpassword’:wink:;

add_db_server(‘buddyceo’, ‘dc1′, 1, 1,’localhost’,’localhost’,’buddyceo_ceo’, ‘buddyceo_ceo’, ‘*****’:wink:;

add_db_server(‘0’, ‘dc1′, 1, 1,’localhost’,’localhost’, ‘buddyceo_ceo0’, ‘buddyceo_ceo’, ‘*****’:wink:;

add_db_server(‘1’, ‘dc1′, 1, 1,’localhost’,’localhost’, ‘buddyceo_ceo1’, ‘buddyceo_ceo’, ‘*****’:wink:;

.

.

.

[Mon Apr 27 02:08:39 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, referer: http://buddyceo.com/

[Mon Apr 27 02:08:39 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, referer: http://buddyceo.com/

[Mon Apr 27 02:08:39 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, referer: http://buddyceo.com/

[Mon Apr 27 02:08:39 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, referer: http://buddyceo.com/

[Mon Apr 27 02:08:39 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, referer: http://buddyceo.com/

[Mon Apr 27 02:08:39 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, referer: http://buddyceo.com/

[Mon Apr 27 02:08:39 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, referer: http://buddyceo.com/

[Mon Apr 27 02:08:39 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, referer: http://buddyceo.com/

[Mon Apr 27 02:08:40 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, referer: http://buddyceo.com/

[Mon Apr 27 02:08:40 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, referer: http://buddyceo.com/