简体   繁体   中英

How to cope with multi AZ RDS MySQL on SQL Server?

We run SQL Server (production), and RDS MySQL off AWS. Both have their respective static IP address. SQL Server pulls data from MySQL database regularly. If we enable multi AZ for the RDS MySQL instance, how then should we configure SQL Server?

Current configuration utilises MySQL Connector/ODBC Data Source Configuration and we believe that the TCP/IP Server field accepts only a valid IP address. It is not able to establish connection, although able to resolve the endpoint's IP address correctly, to the MySQL server. By endpoint, I mean the long connection string -- myInstanceName.abbd12345.us-east1.rds.amazonaws.com

SQL Server的服务器对象>链接服务器连接字符串配置

MySQL连接器数据源配置

In an event of a MySQL failover, the endpoint string remains the same but its IP address would have changed/switched over to another. This, effectively, will render the current SQL Server configured connection by IP address to break. It will be a pain in the neck to update the connection by hand every time.

TL;DL MySQL will be multi AZ. How to configure SQL Server to use the correct IP address if and when MySQL has a failover?

As it turns out, just found out that it does not work for MySQL ODBC driver v3.x. It works for MySQL ODBC driver version 5.x.

在驱动程序版本5.x上使用完整端点字符串测试连接

Download the latest MySQL ODBC driver or version 5.x. https://dev.mysql.com/downloads/connector/odbc/5.3.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM