[hy000] [mysql] [odbc 3.51驱动程序]无法连接到'mysql8.namesco.net'上的MYSQL服务器(10061)

问题描述:

我有一个正确的噩梦尝试将Microsoft Access链接到MySQL。[hy000] [mysql] [odbc 3.51驱动程序]无法连接到'mysql8.namesco.net'上的MYSQL服务器(10061)

我选择了ODBC 3.51连接到MySQL的访问

需要

详情:
TCP/IP - mysql8.namesco.net或IP地址
命名管道 - BLANK
用户名 - **
密码 - **

端口 - 3306(默认)
数据库名称

后,我进入了上述信息提示我有以下错误:

Connection failed:[hy000][mysql][odbc 3.51 driver]Cant connect to MYSQL server on 'mysql8.names.net' (10061)
/

我得到同样的错误,当我使用ODBC 5.1驱动:

Connection failed:[hy000][mysql][odbc 5.1 driver]Cant connect to MYSQL server on 'mysql8.names.net' (10061)

我不知道是什么我做错了!

解决此问题的任何帮助将是惊人的!

+0

如果它是一个托管服务器,你需要登录到你的cPanel并在允许的IP范围内添加你的外部IP来连接数据库。还有许多主机有访问数据库的独立ip。如下面的答案说,提高您的托管支持票,并寻求帮助 – 2014-09-04 12:44:36

你可以在你的机器上ping MySQL服务器吗?你能用任何其他MySQL客户端从你的机器连接到MySQL吗?

有时像hosting.co.uk这样的托管公司把他们的MySQL服务器放在防火墙后面。如果您需要从数据中心之外的某个地方访问,则可能需要咨询他们的技术支持。

Max Thorley: How do i ping? is it telnet IP address? I contacts names to allow remote access. I gave them my public facing IP and IPv4 (which i believe is static)??
This what I get with telnet C:\Users\max.thorley>telnet 192.168.35.24 Connecting To 192.168.35.24...Could not open connection to the host, on port 23: Connect failed C:\Users\max.thorley>telnet mysql9.namesco.net Connecting To mysql9.namesco.net...Could not open connection to the host, on por t 23: Connect failed

尝试telnet mysql9.namesco.net 3306以查看您是否可以访问MySQL端口。你可能不能。如果你不能到达它,你会得到一个类似的消息,你与其他telnet尝试。这意味着您的托管服务已经阻止了MySQL服务器。如果你能得到它,你会得到一些乱码,看起来大致是这样的:

5.5.5-MySQL 
      %\~)L%q? $p*}X!73:i%wmysql_native_password 

你可能无法去它。这是常见的托管服务实践,因为它是一个共享服务器,并且对MySQL服务器装入拒绝服务攻击并不困难。再次,您需要咨询您的技术支持。

if its a hosting server you need to log into your cpanel and add your external ip in the allowed ip range to connect the databases. also many hosting have standalone ip for accessing database. as below answer says raise ticket to your hosting support and ask for help – krish KM

+0

我如何平?它是telnet的IP地址吗?我联系了名字以允许远程访问。我给他们我的公众面临IP和IPv4(我认为这是静态的)??
这是我通过telnet Ç得到:\用户\ max.thorley>的telnet 192.168.35.24 连接为192.168.35.24 ......无法打开连接到主机,端口23: 连接失败 C:\ Users \ max.thorley> telnet mysql9.namesco.net 连接到mysql9.namesco.net ...无法打开连接到主机,在 t 23:连接失败 – 2014-09-04 11:51:19