I recently had to format my computer but I made sure I backed-up all my files before. I am developing lots of local sites using Xamp on my Windows 7 machine.
When I tried to move the files back onto the same drive (c:) and then looked at PHPMYADMIN the tables where there but all empty.
I have all the xamp files including the .frm files but the phpmyadmin shows the DB’s but they are all empty i.e showing no tables inside.
Really hope someone can help as I have potentially lost a LOT of work. Thanks in advance.
When you said “I made sure I backed up all my files” — which files are you talking about? There are the MySQL data files, the XAMPP program files, and then any exported .sql files you may have backed up. The best way to create a backup is to “dump” an SQL file from the database (“Export” from within phpMyAdmin, though I generally use the mysqldump command-line tool). If you didn’t do that but still have the MySQL data directory, the links provided by Peter Michael will guide you (although relying on the MySQL data directory isn’t generally a good backup means, because of various inconsistencies or loss that can occur with your data; whether it works at all also depends on your table type). I don’t know where those data files are stored when using XAMPP and a cursory Google search gives a couple of different options, so good luck.