Recovering mysql database from data folder backup

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

    1. Copy your all old databases from old to newly installed Xampp under this dir

    C:\xampp\mysql\data\

    1. Copy these below files from new xampp (C:\xampp\mysql\data) and keep back up

    ib_logfile0, ib_logfile1 and ibdata1

    1. Similarly copy and replace ib_logfile0, ib_logfile1 and ibdata1 from old xampp to new xampp

    2. If previous Db has crushed or error like mysqld.exe has stopped working use below 2 lines inside my.ini file of mysql

      [mysqld]

    innodb_force_recovery = 2

    innodb_file_per_table=1

    1. Restart Apache and MYSQL and go to PHPMyadmin to export your previous database.
    2. finally replace your back up ib_logfile0, ib_logfile1 and ibdata1 that was taken bakup previously

提交回复
热议问题