Recovering mysql database from data folder backup

前端 未结 9 1645
故里飘歌
故里飘歌 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:18

    I ran into the same problem. I had all my projects in mysql which I lost somehow.

    mysql under my old xampp had got deleted/uninstalled somehow. I did not even have the data folder to copy to new xampp location.

    I browsed through the folders and found mysql/data and mysql/backup in below location.

    C:\xampp\perl\mysql\data

    C:\xampp\perl\mysql\backup

    This is what I did.

    I copied both these folders in place of new xampp mysql/data and mysql/backup folders.

    I also copied other files (not folders) under /mysql from old xampp to new xampp /mysql.

    Stop new xampp mysql and apache servers if running. Restart.

    Viola I got all the lost databases back.

    Hope this helps.

提交回复
热议问题