Questions about mirroring when PHP connects to SQL Server

Source: Internet
Author: User
Problems with mirroring when PHP connects to SQL Server
A look at the textbook of online database

"SERVER=PARTNER_A; Failover_partner=partner_b; DATABASE=ADVENTUREWORKS2008R2; NETWORK=DBMSSOCN "


Way to connect partner_a when not connected Partner_B




I didn't have a mirrored environment and tried 192.168.1.10 with two identical databases 192.168.1.11
"SERVER=192.168.1.10; failover_partner=192.168.1.11; DATABASE=ADVENTUREWORKS2008R2; NETWORK=DBMSSOCN "

10-way can be connected to 10, 10 off the words will not connect to 11, and no database as

What should I do with the mirror? What else do you need to do with PHP?

------Solution--------------------
What is a mirror?

Using PDO to operate SQL Server is quite good.
------Solution--------------------
There's a lot of things to learn here.
  • 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.