- Copy your all old databases from old to newly installed Xampp under this dir
- Copy these below files from new xampp (C:\xampp\mysql\data) and keep back up
ib_logfile0, ib_logfile1 and ibdata1
- Similarly copy and replace ib_logfile0, ib_logfile1 and ibdata1 from old xampp to new xampp
- 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
- Restart Apache and MYSQL and go to PHPMyadmin to export your previous database.
- finally replace your back up ib_logfile0, ib_logfile1 and ibdata1 that was taken bakup previously