Step 1: Go to C:\xampp\mysql. Make sure you are in the correct file location.
Step 2: Backup the data folder by making a copy of the folder
Step 3: Extract the “mysql” folder from C:\xampp\mysql\backup.
Step 4: Replace the mysql folder inside C:\xampp\mysql\data\
Step 5: Restart MySQL service from XAMPP