简体   繁体   English

错误2003(HY000):无法连接到'IPv4地址'上的MySQL服务器(10060)

[英]Error 2003 (HY000): can't connect to MySQL server on ' IPv4 address' (10060)

I have a Google Cloud SQL Instance that I have been using for some time now and connecting successfully from MySQL Workbench. 我有一个Google Cloud SQL实例,我已经使用了一段时间并成功连接MySQL Workbench。 However as of yesterday I can't connect using MySQL Workbench (or the command line on my laptop) and get the error: 但是截至昨天我无法使用MySQL Workbench(或我的笔记本电脑上的命令行)连接并收到错误:

ERROR 2003 (HY000): Can't connect to MySQL server on '207.xxx.xxx.xx' (10060)

I have done the following already: 我已经做了以下事情:

  • Authorised my laptop's IP address (found using whatismyip.com) in the Google Console. 在Google控制台中授权我的笔记本电脑的IP地址(使用whatismyip.com找到)。
  • Assigned an IPv4 address to the database in the Google Console. 在Google控制台中为数据库分配了IPv4地址。
  • Created new users and passwords to see if it was a user issue. 创建新用户和密码以查看它是否是用户问题。 But that didn't help. 但这没有帮助。
  • Restarted the instance, restarted my home network/laptop and got new IP addresses (and updated the authorised IP address accordingly). 重新启动实例,重新启动我的家庭网络/笔记本电脑并获得新的IP地址(并相应地更新了授权的IP地址)。
  • Upgraded to the latest MySQL workbench 6.3 CE but still have the issue. 升级到最新的MySQL工作台6.3 CE,但仍有问题。

The database works as my app can connect to it and accesses the data, I just can't get a remote connection from my laptop. 数据库工作,我的应用程序可以连接到它并访问数据,我只是无法从我的笔记本电脑获得远程连接。

I am new to this and am out of ideas on how to fix it. 我是新手,对于如何修复它没有想法。 Any help would be greatly appreciated. 任何帮助将不胜感激。

Thanks everyone for your help. 谢谢大家的帮助。 After trying all of your suggestions I found a Google group and logged the issue . 在尝试了所有建议后,我找到了一个Google小组并记录了该问题 Google have responded to it as follows: 谷歌如下回应:

David Newgas: For now try connecting from a GCE instance (including cloud shell) or using a GCE instance to proxy connections from your laptop. David Newgas:现在尝试从GCE实例(包括云外壳)或使用GCE实例连接到笔记本电脑的代理连接。 I have updated the dashboard with some more information (although it may take a while for you to see it due to caching) To be clear, this issue will only be affecting first generation instances. 我已经用更多信息更新了仪表板(尽管由于缓存可能需要一段时间才能看到它)为了清楚起见,这个问题只会影响第一代实例。

I did not have enough 'points' to comment, so I'll have my say here. 我没有足够的“积分”来评论,所以我会在这里发表意见。

I am having about exactly the same issue. 我有完全相同的问题。 About 10 days ago I connected fine to the Cloud SQL instance, and synced my db up. 大约10天前,我很好地连接到Cloud SQL实例,并同步了我的数据库。 Yesterday I was going to push some updates etc. But I could not connect, even though I have changed nothing in respect to the database connection, except for the given IPv4. 昨天我打算推送一些更新等。但我无法连接,即使我没有改变数据库连接,除了给定的IPv4。

I figured the issue was with my Django project, based on the App Engine Skeleton, so I created an issue on that project. 我认为问题出在我的基于App Engine Skeleton的Django项目上,因此我在该项目上创建了一个问题。 https://github.com/GoogleCloudPlatform/appengine-django-skeleton/issues/16 https://github.com/GoogleCloudPlatform/appengine-django-skeleton/issues/16

Maybe/Hopefully some we get some information from there. 也许/希望有些人从那里得到一些信息。

I had the same problem. 我有同样的问题。 By pure luck I said "Let's try to connect with my local MySQL client while the gcloud command was saying 纯粹的运气我说:“当gcloud命令说时,让我们尝试连接我的本地MySQL客户端

"Whitelisting your IP for incoming connection for 5 minutes..." “将您的IP白名单连接5分钟......”

and (mysql local client) worked. 和(mysql本地客户端)工作。

暂无
暂无

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

相关问题 错误2003(HY000):无法连接到“ xxx.xxx.xx.xx”上的MySQL服务器(10060) - ERROR 2003 (HY000): Can't connect to MySQL server on 'xxx.xxx.xx.xx' (10060) SQLSTATE [HY000] [2003]无法连接到MySQL服务器 - SQLSTATE[HY000] [2003] Can't connect to MySQL server MySql错误ERROR 2003(HY000):无法连接到'localhost'上的MySQL服务器(10061) - MySql Error ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061) MySQL / AWS RDS:错误 2003 (HY000):无法连接到 MySQL 服务器 - MySQL / AWS RDS : ERROR 2003 (HY000): Can't connect to MySQL server MySQL Workbench导入/导出:错误2003(HY000):无法连接到“本地主机”上的MySQL服务器(110) - MySQL Workbench import/export: ERROR 2003 (HY000): Can't Connect to MySQL server on 'localhost' (110) 错误2003(HY000):无法连接到“本地主机”上的MySQL服务器(10061)-MYSQL命令行连接 - Error 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)— MYSQL Command line connectivity Wamp mysql:ERROR 2003(HY000):无法连接到“ localhost”上的MySQL服务器(10061) - Wamp mysql : ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061) 错误2003(HY000):无法连接到“本地主机”上的MySQL服务器(10061“未知错误”) - ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061 “Unknown error”) 错误2003(HY000):无法连接到'23 .23。*。*'上的MySQL服务器(110) - ERROR 2003 (HY000): Can't connect to MySQL server on '23.23.*.*' (110) 错误 2003 (HY000):无法连接到本地主机上的 MySQL 服务器 (10061) - ERROR 2003 (HY000): Can't connect to MySQL server on localhost (10061)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM