1. Check if the main library is a full backup
2. Restore the database back to the Sync library (full and transaction logs are backed up two times to the same backup file and copied to the sync machine)
3, with the certificate is too troublesome, we directly with two windows serious account
Do not divide the main standby machine, first of all to ensure that the two machines have a same login name and password.
4. Run services.msc to ensure that the SQL Server instance of both machines is running in this same account name
5, respectively, in the host and standby machine, create endpoint, note that the validation section to write NTLM, using native instead of domain authentication.
--DROP ENDPOINT endpoint_mirroring--GOCREATEENDPOINT endpoint_mirroringstate=STARTED asTCP (Listener_port=5022, LISTENER_IP= All ) fordatabase_mirroring (Authentication=WINDOWS NTLM, encryption=REQUIRED algorithm AES, ROLE= All);
6. Set the master and standby synchronization
First in the Standby machine execution:
ALTER DATABASE [db_name] SET = ' tcp://host ip:5022 ';
Again to the host execution:
ALTER DATABASE [db_name] SET = ' tcp://Standby Machine ip:5022 ';
7, finished, this should be considered the simplest configuration method.
SQL2008 a non-domain environment directly using the mirroring settings of Windows logon