Can't create linked server - sql server and mysql

好久不见. 提交于 2020-01-11 10:54:32

问题


I want to create a linked server between SQL Server and a MySQL instance. I followed the steps outlined in this tutorial but it's not working. I've recorded a video of the process I am using to create the server:

http://www.youtube.com/watch?v=-8psvDjysHk&feature=youtu.be

SQL server return this error:

The linked server has been created but failed a connection test. Do you want to keep the linked server?

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)

The OLE DB provider "SQLNCLI10" for linked server "MYSQLAPP" reported an error. Authentication failed.
Cannot initialize the data source object of OLE DB provider "SQLNCLI10" for linked server "MYSQLAPP".
OLE DB provider "SQLNCLI10" for linked server "MYSQLAPP" returned message "Invalid authorization specification". (Microsoft SQL Server, Error: 7399)


回答1:


You need to create a SYSTEM DSN on the SQL Server machine but in your video you create a USER DSN. Select the System tab in the ODBC applet before you create the DSN.



来源:https://stackoverflow.com/questions/14184429/cant-create-linked-server-sql-server-and-mysql

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!