SQLServer database, link server MySQL, install MySQL ODBC driver

(1) Download and install the ODBC driver of MySQL

1. Official download package

insert image description here

2. Install the ODBC driver of MySQL

The installation steps are as follows:

insert image description here
insert image description here

insert image description here

insert image description here

(2) Open ODBC, add data source driver, configure MySQL link

1. Search for odbc and run it as an administrator:

insert image description here

2. On the system DNS page, add MySQL ODBC Driver

insert image description here

3. Configure the MySQL database connectioninsert image description here

(3) SQLServer database, create a new linked server

insert image description here
insert image description here

Note: The data source needs to be consistent with the ODBC configuration MySQL database connection Data Source Name,
access interface string: server=127.0.0.1;Database=ch_sms;uid=root;pwd=123456;

Guess you like

Origin blog.csdn.net/vaecnfeilong/article/details/128881844