在sql-server上建立mysql链接库

EXEC sp_addlinkedserver @server = N'RESUME_MYSQL_CONN', @srvproduct=N'MySQL ODBC 5.1 Driver', @provider=N'MSDASQL', @provstr=N'DRIVER={MySQL ODBC 5.1 Driver};SERVER=192.168.1.1;PORT=3306;DATABASE=ve_resume;USER=efoncheng;PASSWORD=efoncheng;STMT=set names utf8;option=3' 
GO
EXEC sp_addlinkedsrvlogin @rmtsrvname=N'RESUME_MYSQL_CONN',@useself=N'False',@locallogin=NULL,@rmtuser=NULL,@rmtpassword=NULL
GO

 

你可能感兴趣的:(server)