Reputation: 2456
I just install a fresh copy of WAMP, and I want to import couple of databases from the old one to the new one, so I entered to the old mysql data directory C:\wamp-old\bin\mysql\mysql5.7.14\data
, and copy the relevant databases there to the new data directory. But when I try to access the tables in phpmyadmin
, I get a message saying that the tables aren't exists, but they do:
What am I missing?
Upvotes: 10
Views: 18739
Reputation: 1
for MariaDB
For MySql
Upvotes: 0
Reputation: 119
I did it successfully just now:
You are done!
Upvotes: 7
Reputation: 1
Stop the Service (because it will complain for a file opened by another app) then Just copy and paste the ENTIRE (...\data) file from old installation folder backup to the new installation by overwirting the existing new installation file.
Finally, start the service.
Upvotes: -1
Reputation: 21
In my case the mySQL version of my old Wamp installation (5.7.26) was very different from the one in my new Wamp installation (8.0.21), so nothing from the solutions here worked for me. I downloaded the old version of mysql from https://wampserver.aviatechno.net/#mysql_versions , installed it and replaced the hole ‘data’ folder with my old one. Now from Wamp\MySQL\Version menu I can choose the old version and all my old databases are working fine. You can leave that working version of mySQL or export the databases and import them to the new mySQL version.
Upvotes: 2
Reputation: 2306
you can not restore databases like this way,
Please follow this steps to restore the databases from old to one,
Upvotes: 1