我安装了SQL Server 2017 Developer。我要使用SQL Server Migration Assistant for MySQL将MySQL数据库迁移到SQL Server。但是我无法让迁移助手连接到MySQL服务器。首先,使用MySQL工作台,我可以通过这个对话框毫无问题地连接到服务器; MySQL Workbench connection dialog box 使用在迁移助手对话框中输入的用于连接到MySQL服务器的相同服务、(或服务器)名称、端口和用户; SQL Server Migration Assistant connection to MySQL Serve
我有一个简单的代码:
<?php
//Open the mySQL connection
$conn_string = "'localhost', 'Vale', 'test'";
$dbh = mysql_connect($conn_string);
//Check that a connection with the DB has been established
if (!$dbh)
{
die("Error in MySQL connection: " . mysql_error());
}
我试图使用Windows身份验证(集成安全性)连接到本地MySQL数据库。我使用以下连接字符串:
server=localhost;database=mydatabase;integratedsecurity=True
在MySqlConnection.Open()上,我从内部深处得到一个‘`NullReferenceException’。下面是堆栈跟踪:
at MySql.Data.MySqlClient.Authentication.MySqlNativePasswordPlugin.MoreData(Byte[] data)
at MySql.Data.MySqlClient.Authe
我在phpmyadmin中获得了mysql数据库,并尝试从我的应用程序连接到数据库。
我的连接字符串是:
Server=12.919.18.12;Port=3306;Database=hbd;Uid=hb;Pwd=123;
出现了一个异常:
"Unable to connect to any of the specified MySQL hosts."
我需要安装mysql或其他什么吗?
(我只是导入了MySql.Data.dll并尝试了一下。我是不是忘了什么?我检查了pinging我的网站的ip )。