How to restore mysql database in XAMPP?

后端 未结 4 1099
太阳男子
太阳男子 2021-01-06 16:13

I have a backup of the entire xampp/mysql folder. How can I use it to recover my old db on a fresh installation of XAMPP?

Simply copying the old

4条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-06 16:51

    To restore your database to XAMPP these are the things you need: -.frm , .ibd files , and ibdata1 can be found in mysql/data folder

    Steps

    • Install New XAMPP

    • Replace ibdata1 in mysql/data

    • Copy the folders of the database you want to restore [.frm and .ibd] and paste in mysql/data

    • Run the mysql and Viola it works!

    If there is an #1932 error occur, just import the create_tables.sql from xampp/phpMyAdmin/sql and this solves the problem.

提交回复
热议问题