The issue happens for me while I started to open MySQL in XAMP and it is opening but suddenly shuting down .
The problem might not be related to wordpress but the files in the xampp folder.
Re arranging the files make the database disappear so I have to start implement this from scratch.I don’t think the database issue will be there if you fix it in a correct order.

Let me explain how I fixed the issue:
Go to Xampp -> MySQL -> data
Make a copy of the folder data and rename it as data_old.
Now we have to repair the data folder.
Delete folders (mysql,performanceschema,myphpadmin,test) and select all the files remaining except ibdata1 and the databases that we created.
Go to backup folder and select all except ibdata1 and go to data and copy all
Now start the MySQL in xampp box.
It looks fixed.
One thing you have to make sure while modifying the page is that you have to follow the steps correctly otherwise it can cause more issues that we may lost our valuable Data