Something I'm confused about, trying to change the database in an existing WP install, for example:
I have a local WP site (in XAMPP) working fine off a DB called database-A, however if I change, in wp-config:
define('DB_NAME', 'database-B'); (just another WP DB)
Error establishing a database connection
But if I export database-A into a .sql file, and empty out database-B and then import the database-A .sql file into database-B, the site works.
So what's validating the data to the WP install to make it work, and why won't database-B just work with the WP install?
Things I've tried:
- Changing the Authentication Unique Keys and Salts in wp-config.php
- Changing instances of the site host name in the database
- Deleting cookies