- Go to your XAMPP MySQL directory. By default, it is located under Local Disk → XAMPP → MySQL (e.g. if you installed it under the default C-drive, you will find the folder in
C:\xampp\mysql
). Here you will be seeing different folders — the ones that we need to use are thedata
andbackup
folders - Rename the
data
folder todata_old
. - Create a new folder with the name
data
. This is the new folder that MySQL will use to replace the old one. Now, we need to fill this folder with certain files. - Go to the
backup
folder and copy all the files inside it. Paste them into the newdata
folder. - Now, we need to paste databases into our new
data
folder. In order to do so, inside thedata_old
folder, copy themysQL
folder, as well as all the folders under thephpmyadmin
folder. If you have only one folder, it is totally okay, just make sure you paste it. There is NO need to copy theperformance_schema
andphpmyadmin
folders. - Last but not least, we need to copy the
ibdata1
file. Go to yourdata_old
folder, find theibdata1
file, and past it into thedata
folder.
Comments
Post a Comment