Simply you can use this method:
- If you have a database with same name:
WIN+R
-> services.msc
-> SQL SERVER(MSSQLSERVER)
-> Stop
- Go to your MySQL Data folder path and delete previews database files
- Start sql service
- Right click on database and select Restore database
- in Files tab change Data file folder and Log file folder
- Click on OK to restore your database
my problem was solved with this method
BY...