Hacky Code
Sophomore
Just Getting Started
Member Likes (0)
Hi,
Move scripts appears to have worked correctly as it states "exists" and "table in new db" for each table, however i now get the following error on my home page:
Warning: Missing argument 9 for add_db_server(), called in /home/burblco/public_html/wp-content/db-config.php on line 37 and defined in /home/burblco/public_html/wp-content/db.php on line 35
Warning: mysql_get_server_info() [function.mysql-get-server-info]: Access denied for user 'burblco'@'localhost' (using password: NO) in /home/burblco/public_html/wp-content/db.php on line 705
Warning: mysql_get_server_info() [function.mysql-get-server-info]: A link to the server could not be established in /home/burblco/public_html/wp-content/db.php on line 705
Warning: Cannot modify header information - headers already sent by (output started at /home/burblco/public_html/wp-content/db.php:35) in /home/burblco/public_html/wp-includes/functions.php on line 3371
Error establishing a database connection
my db config:
define ('DB_SCALING', '256');
//------------------------------------------------------------------------//
//---DC IPs---------------------------------------------------------------//
//------------------------------------------------------------------------//
// Usage: add_dc_ip(IP, DC)
// EX: add_dc_ip('123.123.123.', 'dc1');
add_dc_ip('64.131.68.74.', 'dc1');
//------------------------------------------------------------------------//
//---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');
// add_global_table('burblco_global'); (commented out while trying to get installation to work)
//------------------------------------------------------------------------//
//---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');
//
// Note: you can also place this section in a file called db-list.php in wp-content
add_db_server('global', 'dc1', 1, 1,'64.131.68.74', 'burblco_global', 'user_user, 'password');
add_db_server('00', 'dc1', 1, 1,'','64.131.68.74', 'burblco_00', 'user_user, 'password');
and so on and so forth...
can you show me where i'm going wrong please?
many thanks
Responses (3)
Support Kangaroo (joined March 2011) Likes (0)
Greetings Hacky Code,
Immediately after looking at the supplied coding above for your db-config.php file, I can see several issues with it starting with the first line as shown below:
not commented out:
add_global_table('burblco_global');add_db_server('global', 'dc1', 1, 1,'64.131.68.74', 'burblco_global', 'user_user, 'password');should be without the missing quotes as you have above:
add_db_server('global', 'dc1', 1, 1,'','64.131.68.74', 'burblco_global', 'user_user', 'password');next line same thing:
add_db_server('00', 'dc1', 1, 1,'','64.131.68.74', 'burblco_00', 'user_user, 'password');should be:
add_db_server('00', 'dc1', 1, 1,'','64.131.68.74', 'burblco_00', 'user_user', 'password');In the line above you are missing a single quote ' after the user_user and so on and so forth.
Please advise as to getting these missing quotes replaced and you should be well on your way to working.
Looking forward to hearing from you and thank you for being a WPMU Dev Member!
Cheers, Joe
Member (joined May 2011) Likes (0)
hi joe, thanks for the response.
the problem was the missing quotes on the global line, cant believe i missed that.
the other lines did have the quotes that was just my mistake in copying over.
thanks a lot for your help.
Support Kangaroo (joined March 2011) Likes (0)
Greetings Hacky Code,
No problem and happy that we got it resolved quickly.
Thank you for being a WPMU Dev Member!
Cheers, Joe
WordPress Questions?
We've got answers!
Find out more »