Solution 1:
If you have your old database file (.sql), you can restore it as follows:
To import the database:
- Open phpMyAdmin in your browser: http://localhost/phpmyadmin
- Select the database you want to import into. (If the database doesn’t exist, create a new one.)
- Click the Import tab in the top menu and upload your .sql file.
To take a backup of your database in XAMPP:
- Open phpMyAdmin: http://localhost/phpmyadmin
- Select the database you want to back up.
- Click the Export tab in the top menu and save the backup file.