MS SQL Server 2008 connection issue - mysql

I have a Linux server and a database server (MSSQL 2008) at another location. I use the MySQL ODBC connector to connect to the MS server, but the connection fails every time. I also changed the bind address of my MySQL server to my IP address.

Related

Failure to connect to MySQL server from SQL Server Migration Assistant

I have SQL Server 2017 Developer installed. I want to use the SQL Server Migration Assistant for MySQL to migrate a MySQL database into SQL Server. But I can't get the migration assistant to connect to the MySQL server. First of all, using MySQL Workbench I can connect to the server with no problem through this dialog box;
MySQL Workbench connection dialog box
Using the same service, (or server) name, port and user entered into the migration assistant dialog box for connecting to the MySQL server;
SQL Server Migration Assistant connection to MySQL Server dialog box
I get an error message saying,
Cconnection to MySQL failed. ERROR [HY000] [MySQL][ODBC 5.2(w) Driver]Unknown MySQL server host 'Mysql#127.0.0.1' (0)
I've tried selecting both the ANSI and unicode ODBC drivers, version 5.2 and 5.3. Nothing seems to work.
You need to remove "Mysql#" from the connection string. This isn't a necessary part of the hostname when connecting through SSMA.

Linking MySQL server on Sql Server 2008

In our application I have to transfer data from between a MySql Server deployed on Linux machine and a SQL Server deployed on a Windows machine, its both the ways.
We plan to do it by creating MySql as a linked server on SQL Server. I have created a DSN pointing to the Linux Server and it shows "Connection Successfull" when I "test" it.
I get the following error when I try to add the same MySql server as a linked server
Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server "MYSQLDNS".
OLE DB provider "MSDASQL" for linked server "MYSQLDNS" returned message "[MySQL][ODBC 5.1 Driver]Lost connection to MySQL server at 'waiting for initial communication packet', system error: 10060". (Microsoft SQL Server, Error: 7303)
The DSN I am using is a System DSN. I have tried with a User DSN too.
I can connect to the mysql instance using a MySQL Workbench. I can telnet into it too.
Our MySQL is installed on a 64 bit linux machine and the SQL Server is a 32 bit windows machine.
I was getting this error too - 64 bit ODBC version 8 driver from MySQL, using 64 bit Windows and 64 bit SQL Server. For me it was the Connection Timeout property on the linked server in SQL Server

MYSQL ODBC adding server name to user name

Trying to create an ODBC connection from a server to MySQL server. installed 5.1 ODBC driver on the server I want to connect from. when I go to test the connection - the MySql server denies access to user -- then it lists the username with a "#servername.domain.com" appended to it. why is the ODBC appeneding that? so clearly we are connecting to the MySQL server. Both serers are in the same domain behind the firewall. is there somethign on the MySQL server need to configure?

Can't access SQL Server 2008 via windows service

I have an application which connects to SQL Server 2008 via windows service.Basically,windows service pics up a configuration file to get connection details like instance name , user name & password.Currently this windows service is failing to start with following error message :-
A network-related or instance-specific error occurred while establishing a connection
to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server
is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
Application server and DB server are different machines.I can connect to SQL Server via SSMS from application server without any issue. Also I created a UDL on app server and it also connected fine to DB server. Any help here is much appreciated.
Check the account under witch windows service is running- most possible that account is not allowed to make connections to other computers.

How do you configure a ColdFusion 8 datasource to connect to a local SQL Server 2008 server?

I've set up a local SQL 2008 Server, enabled SQL Authentication, created a user for ColdFusion to use and verified that I can connect with that username and password using SSMS. (Connect using MACHINENAME\SQLEXPRESS)
However, I am unable to successfuly add the datasource in my CF Administrator, with the error being: Error establishing socket to host and port
Is there additional configuration of the server or ColdFusion that is necessary to connect?
You should be able to just use LOCALHOST as the server name, and port 1433 as the port number. You may have to enable IP connections through the SQL Server Configuration Manager. You can search Google for instructions on how to do that, which I found here and here.