- Attach the database to sqlserver which is sharepoint using; create webapplication .. we won’t need to create site collection.
- Type this command in sharepoint shell.
Mount-SPContentDatabase -name dbname -WebApplication http://servername:portnumber this operation may take from 2 minutes to 10 minutes depending on your data size; it will show you percentage as it finishes.
- After finishing it, click iisreset.
Go to your browser and type your webapplication url & here you go