[英]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: 我已经做了以下事情:
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.