Fix lỗi Xampp không hoạt động

  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