简体   繁体   English

无法连接到远程MySQL服务器

[英]Can't connect to remote MySQL server

I'm trying to open a connection from my NetBeans IDE to my remote MySQL database. 我正在尝试打开从NetBeans IDE到远程MySQL数据库的连接。 I've put in what I think is the correct parameters in the response fields but when I try to test the connection it gives me this error message: 我在响应字段中输入了我认为正确的参数,但是当我尝试测试连接时,它会显示以下错误消息:

Cannot establish a connection to 无法建立与

jdbc:mysql://198.136.54.104:3306/myedigit_FirstDb?zeroDateTimeBehavior=convertToNull

using com.mysql.jdbc.Driver 使用com.mysql.jdbc.Driver

Communications link failure 通讯链接故障

The last packet sent successfully to the server was 0 milliseconds ago. 成功发送到服务器的最后一个数据包是在0毫秒之前。 The driver has not received any packets from the server. 驱动程序尚未收到来自服务器的任何数据包。

屏幕截图

Please let me know if you need any more information I'll be happy to provide it. 如果您需要更多信息,请告诉我,我们将很乐意提供。

Your host may not allowing remote connection. 您的主机可能不允许远程连接。 You may need to add Access Host by Login into your host server and go to Remote MySql (I am referring GoDaddy ) 您可能需要通过登录将Access Host添加到主机服务器,然后转到Remote MySql (我指的是GoDaddy

You need to provide either your IP Address in host or % to access remotely from anywhere. 您需要在主机或%提供IP地址以从任何地方远程访问。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM