- Create a new web application on the target farm;
- Run this command under SharePoint 2013 Management Shell of target farm server with administrator privilege:
Get-SPContentDatabase -WebApplication <url> | Dismount-SPContectDatabase
-
Delete or detach the related database of this application of target farm;
-
Attach or restore the database of the source web application to the SqlServer of target farm;
-
Run this command under SharePoint 2013 Management Shell of target farm server with administrator privilege:
Mount-SPContentDatabase <DBName> -DatabaseServer <DBServerName> -WebApplication <url>