Shardb: problem with db.php file
-
Two questions regarding the db.php file to be inserted as part of the Shardb Plugin.
1. Per the instructions, I am supposed to add “$enable_home_db = true;” to the config area of db-settings.php. Where is the config area?
2. When I install the db.php file per the instructions, I get the following error message:
Warning: fsockopen() [function.fsockopen]: unable to connect to localhost:3306 (Connection refused) in /home/SITE/public_html/wp-content/db.php on line 521
Connected to localhost:3306 but unable to select database ‘DATABASE_NAME’ while querying table ‘XX_sitemeta’ (global_r)
Warning: fsockopen() [function.fsockopen]: unable to connect to localhost:3306 (Connection refused) in /home/SITE/public_html/wp-content/db.php on line 521
Connected to localhost:3306 but unable to select database ‘DATABASENAME_global’ while querying table ‘XX_blogs’ (global_r)
Warning: Cannot modify header information – headers already sent by (output started at /home/SITE/public_html/wp-content/db.php:521) in /home/SITE/public_html/wp-includes/ms-settings.php on line 94Lines 521 to 527 of dh.php read:
$socket = fsockopen($host, $port, $errno, $errstr, $float_timeout);
if ( $socket === false ) {
if ( $use_apc )
apc_store($apc_key, ‘down’, $apc_ttl);
$this->tcp_responsive = “false [ > $float_timeout] ($errno) ‘$errstr'”;
return false;
}Line 94 of ms-settings.php reads:
header( ‘Location: ‘ . $destination );
Does anyone have any ideas on how to fix this?
Thanks!
- The topic ‘Shardb: problem with db.php file’ is closed to new replies.