I have uninstalled the old XAMPP and deleted all of the content of d:\\xampp folder
and installed the new one. When I copy my backup folder (with the name of my
It is possible, I found out a solution:
I just copied the data folder from the mysql folder inside the xampp folder structure and paste it in the same structure in my new installation, Everything is working fine now.
C:\xampp\mysql\data\
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
innodb_file_per_table=1
I ran into the same problem. I had all my projects in mysql which I lost somehow.
mysql under my old xampp had got deleted/uninstalled somehow. I did not even have the data folder to copy to new xampp location.
I browsed through the folders and found mysql/data and mysql/backup in below location.
C:\xampp\perl\mysql\data
C:\xampp\perl\mysql\backup
This is what I did.
I copied both these folders in place of new xampp mysql/data and mysql/backup folders.
I also copied other files (not folders) under /mysql from old xampp to new xampp /mysql.
Stop new xampp mysql and apache servers if running. Restart.
Viola I got all the lost databases back.
Hope this helps.
Here's how I dealt with this kind of situation:
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.)
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
).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.
Set datadir = "D:\xampp\mysql\data" in xampp/mysql/bin/my.ini