How to restore MySQL database from WAMP?

吃可爱长大的小学妹 提交于 2019-12-03 07:50:14
noonex

Looks like you use InnoDB tables, so you should also copy ib* files in data folder (but this will overwrite any InnoDB table created in new installation.)

Alternatively (even better) you may set 'datadir' parameter in configuration file and specify path to data folder in old installation.

When you're doing changes to MySQL server at the back side (i.e. not using standard MySQL commands or interfaces), remember to stop the server before any changes and start after doing the changes.

Anyway this is not the recommended practice, use mysqldump instead to take regular backups and you can later restore a dump file using mysql ... < dump-file.sql.

Goto old wamp like wamp\bin\mysql\mysql5.5.24\data folder and copy all content and paste or replace with new setup folder "wamp\bin\mysql\mysql5.5.24\data".

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!