Recovering mysql database from data folder backup

前端 未结 9 1646
故里飘歌
故里飘歌 2020-12-03 01:42

I have uninstalled the old XAMPP and deleted all of the content of d:\\xampp folder and installed the new one. When I copy my backup folder (with the name of my

9条回答
  •  伪装坚强ぢ
    2020-12-03 02:19

    Here's how I dealt with this kind of situation:

    1. Stop the Apache and MySql services from xampp control panel.
    2. Back up (just in case), then delete the data folder from your new xampp installation folder /xampp/mysql.

      (The data folder contains the schema/table definitions (.frm files) for your tables.)

    3. Copy the data folder from your previous xampp folder (or the backup) under mysql and paste it to the new location (i.e. /xampp/mysql).
    4. Now start the Apache and MySql services from the xampp control panel.

    There you go, the tables should show up with their structures as you click on them.

    Note: Make sure you leave the bin folder under your xampp installation folder untouched.

提交回复
热议问题