SQL2008 a non-domain environment directly using the mirroring settings of Windows logon

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.