I have a backup of the entire xampp/mysql
folder. How can I use it to recover my old db on a fresh installation of XAMPP?
Simply copying the old
To restore your database to XAMPP these are the things you need: -.frm , .ibd files , and ibdata1 can be found in mysql/data folder
Steps
Install New XAMPP
Replace ibdata1 in mysql/data
Copy the folders of the database you want to restore [.frm and .ibd] and paste in mysql/data
Run the mysql and Viola it works!
If there is an #1932 error occur, just import the create_tables.sql from xampp/phpMyAdmin/sql and this solves the problem.