Here's how I dealt with this kind of situation:
- Stop the Apache and MySql services from xampp control panel.
- Back up (just in case), then delete the
data
folder from your new xampp installation folder <physical_drive>/xampp/mysql
.
(The data
folder contains the schema/table definitions (.frm files) for your tables.)
- Copy the
data
folder from your previous xampp
folder (or the backup) under mysql
and paste it to the new location (i.e. <physical_drive>/xampp/mysql
).
- Now start the Apache and MySql services from the xampp control panel.
There you go, the tables should show up with their structures as you click on them.
Note: Make sure you leave the bin
folder under your xampp installation folder untouched.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…