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?
On my system, they are in C:\Program Files (x86)\WampServer\bin\mysql\mysql5. 1.53\data . So in yours they would be in E:\wamp\bin\mysql\mysql-version\data . You can start mysql locally from E:\wamp\bin\mysql\mysql-version\bin , where all the executables are.
And when you have reinstall the wamp server just rename the "data-old" folder to "data" In this way you will not lose your database.
You forgot to copy the ibdata file.
I did it successfully just now:
You are done!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With