sql 2008 R2添加对MySql的远程服务器链接
(1).我的sql 2008 R2所在的系統(tǒng)為Windows server 2008 *64
(2).MySQL所在的系統(tǒng)為Windows server 2003 *86
我想要實(shí)現(xiàn)的是在sql 2008 R2數(shù)據(jù)庫直接訪問MySQL數(shù)據(jù)庫的數(shù)據(jù)。
1.安裝MySQL ODBC connector5.3.4
http://dev.mysql.com/downloads/connector/odbc/
2.
安裝MySQL ODBC connector5.3.4驅(qū)動(dòng)提示如下問題:
Error 1918. Error installing ODBC driver MySQL ODBC 5.1 Driver, ODBC error 13: The setup routines for the MySQL ODBC 5.1 Driver could not be loaded due to system error code 126: The specified module could not be found. ...\myodbc5S.dll).. Verify... 原因:需要安裝Microsoft Visual C++ 2010 Redistributable Package 后,才能安裝成功。鏈接地址: 64-bit version:
http://www.microsoft.com/en-us/download/confirmation.aspx?id=14632
32-bit version:
http://www.microsoft.com/en-gb/download/details.aspx?id=5555
3.在ODBC中建立System DSN,命名為“MySQLODBC”
4.然后在sql 2008 R2添加鏈接服務(wù)器,數(shù)據(jù)源選擇上面的MySQLODBC
連接串:Driver={MySQL ODBC 5.3 ANSI Driver};Server=localhost; Database=test;User=root;Password=root;Option=3;
5.查詢一下
select * from sys.servers6.查詢mysql數(shù)據(jù)庫的數(shù)據(jù)
哈哈,大功告成!
轉(zhuǎn)載于:https://www.cnblogs.com/vinsonLu/p/5133162.html
與50位技術(shù)專家面對(duì)面20年技術(shù)見證,附贈(zèng)技術(shù)全景圖總結(jié)
以上是生活随笔為你收集整理的sql 2008 R2添加对MySql的远程服务器链接的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Linq to SQL只支持SQL Se
- 下一篇: Monte carlo