[Plugin: HyperDB] my config file seems to be ignored
-
Hi,
I have set up db-config.php in my WP root dir. I have not edited the code other than to add my databases
$wpdb->add_database(array(
‘localhost’ => DB_HOST, // If port is other than 3306, use host:port.
‘MY_user’ => DB_USER,
‘bar’ => DB_PASSWORD,
‘wpdb’ => DB_NAME,
‘write’ => 1,
‘read’ => 1,
));/**
* This adds the same server again, only this time it is configured as a slave.
* The last three parameters are set to the defaults but are shown for clarity.
*/
$wpdb->add_database(array(
‘192.168.5.5’ => DB_HOST, // If port is other than 3306, use host:port.
‘wp_user’ => DB_USER,
‘foo’ => DB_PASSWORD,
‘wpdb’ => DB_NAME,
‘write’ => 0,
‘read’ => 1,
‘dataset’ => ‘global’,
‘timeout’ => 0.2,
));when i try to connect I get this in the mysql log
Access denied for user ‘apache’@’localhost’ (using password: NO)
NOTE: the web server runs as the user “apache” and all files have read access for that userIn the browser i get taken to the WP first time install page.
why doesn’t WP see the values from my db-config.php file
- The topic ‘[Plugin: HyperDB] my config file seems to be ignored’ is closed to new replies.