UpdraftPlus Home › Forums › Paid support forum – UpdraftPlus backup plugin › Migrated to new host, database error
- This topic has 6 replies, 2 voices, and was last updated 8 years, 9 months ago by Hannah.
-
AuthorPosts
-
May 6, 2016 at 10:20 pm #155240HannahParticipant
I successfully migrated a client’s site to a new host, but it had a database error because it was trying to connect to the db at the old host. I changed wp-config to reflect the new db name, user and password, and now WordPress is asking to be installed again! What do I do now?
May 6, 2016 at 10:23 pm #155241udadminKeymasterPlease can you post a link to the restoration log? You can find this in wp-content/updraft on the destination site.
From the description, it sounds like you ticked the option to replace wp-config.php? (The tick-box with the warning next to it, linking to an article which explains that you almost certainly don’t want to tick it…). But, if you can link the restoration log, I can see what did happen, rather than speculate!
David
May 6, 2016 at 11:05 pm #155244HannahParticipantThis reply has been marked as private.May 7, 2016 at 11:55 am #155291udadminKeymasterHi,
Thanks. You say:
I got a database error saying it couldn’t connect to the database at evemargowithrow.ipower.com, which was the old host.
Please can you link a screenshot of that error? The normal WordPress error for wrong database details doesn’t mention the host of the MySQL server, so, this error appears to be something other than that. If you can link a screenshot, then that’ll help me know what it is.
By the way – the above log is of a restore of the database only – not of plugins/uploads/themes/others. Is there another log for that?
David
May 7, 2016 at 6:18 pm #155324HannahParticipantThis reply has been marked as private.May 7, 2016 at 11:01 pm #155352udadminKeymasterHi Nancy,
I’m wondering – how did you install WordPress on the new hosting? Did you copy wp-config.php from the original site, so that it was always pointing at the original hosting? In that case, the database ‘restore’ would have just replaced the database at the original MySQL server with a copy of itself – i.e. done nothing. And as such, you don’t yet have any database set up at the new hosting – which is why the ‘install’ screen shows. Installing sets up a basic, empty set of tables that make up a WordPress database – and then you’d need to do the database restore again (but not the other parts) to populate it with your site data; after which (if I’ve understood rightly) you’d then be all done.
David
May 8, 2016 at 3:19 pm #155378HannahParticipantIt was definitely the security plugin! I deleted it and one of its other files via ftp this morning, got into the site, reinstalled and configured BPS Pro, and it’s all good now! This was the first time I had migrated a site that had BPS Pro active, so I did learn a valuable lesson for future migrations: disable or delete BPS Pro first, then add it back in after the migration is complete. Thanks for helping me get through this, Updraft.
-
AuthorPosts
- The topic ‘Migrated to new host, database error’ is closed to new replies.