changing databases
-
I have 4 wordpress sites located on one server, and split between two databases (3 of them on one database, one of them on the other). I wanted to merge them together on to one database, so I backed one of the databases up and imported the backup in to the other database. Each of them have their own custom prefixes since they’re meant to share one database with others. I should also add that previous to doing this all the installations were working without a hitch.
There has been no domain change or change in location of the wordpress installations, so after importing the only thing left to do should be to update wp-config on the appropriate installations to switch them over so they’re all using one database, right?
It’s not working, though. I tested one and I simply get “Error establishing a database connection”. I copied and pasted the database login info from the site that was already using that database, and the only different things about the block I copied and pasted was the login name, server location, and password.
I then tried switching back to the old wp-config file, which I kept backed up (plus I never deleted the test site’s original database that it was working with previously just in case something like this happened). But now I get the same error – “Error establishing a database connection”. Why on earth would it have been working before and then refuse to work now, and what can I do to fix it? It would be even better if someone could tell me how to switch to the database like I originally intended!
All of these sites are using the same installation version of wordpress, just installed to different directories on the server.
- The topic ‘changing databases’ is closed to new replies.