Database connection errors
-
I’m trying to get SharDB to work and followed the instructions in readme.txt. I now have the following databases:
foo_bar_clone– the old monolithic database (a clone of the live database on a dev machine)
foo_bar_global
foo_bar_home
foo_bar_vip1throughfoo_bar_vip4
foo_bar_00throughfoo_bar_ffdb-settings.php has the following settings at the top:
define( 'DATACENTER', '' ); $shardb_hash_length = 2; $shardb_prefix = 'foo_bar_'; $shardb_dataset = 'global'; $enable_home_db = true; $num_vipdbs = 4; $shardb_local_db = true;I have one database server set up:
add_db_server( 'global', 0, '', 1, 1, DB_HOST, DB_HOST, $shardb_prefix . 'global', DB_USER, DB_PASSWORD );wp-config.php has not been modified except for
require()ing db-settings.php.The import script runs through and the databases are populated. After copying db.php into wp-content I can open individual blogs and they seem to work. However, when I try to do anything in the network admin I get an error page telling me that the database
wp_blogscould not be found infoo_bar_clone.Apparently WordPress still tries to use the old monolithic database and apparently it doesn’t work. Removing db.php restores full functionality. I have made a mistake somewhere but I can’t spot it.
How can I figure out what went wrong? And is there an easy way to figure out which databases the new database class is trying to talk to?
The topic ‘Database connection errors’ is closed to new replies.