Solution:1
If you have your old database file (.sql) then you can just
1.Run this link from your browser http://localhost/phpmyadmin.
2.Select Database which you want to upload the SQL file. (If no DB , create new database).
3.Click on Import option from top menu section and upload you files.
and for taking backup of your database on Xampp 1. Run this link from your browser http://localhost/phpmyadmin. 2. Select Database which you want to take backup of. 3. Click on Export option from top menu section and backup your files.