【发布时间】:2016-11-08 17:56:52
【问题描述】:
我想使用 IP 连接到 Google Cloud SQL 实例(而不是来自其他谷歌服务,如 appengine)。连接我用的是phpMyAdmin和MySql,都无法连接。
CloudSql 实例详情
- 实例类型:
MySQL First Generation层级:D1 - 版本:
MySQL 5.5 - 授权网络:
::/0(大家基于documentation) - 授权用户:无密码且允许来自任何域的用户 (
%)
连接客户端规范
- phpMyAdmin
4.6.4(全新安装) - MySQL 版本
5.5.52-cll
所以我有一个可以从任何地方连接但仍然无法连接的实例。
MySql 使用 ssh
mysql --host=the:ipv6:of:the:instance --user=theusername --password
我得到一个错误
ERROR 2003 (HY000): Can't connect to MySQL server on 'the:ipv6:of:the:instance' (110)
PhpMyAdmin config.inc.php
$cfg['Servers'][$i]['host'] = 'the:ipv6:of:the:instance';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['blowfish_secret'] = 'some secret';
这里的错误是:#2003 - Can't connect to MySQL server on 'the:ipv6:of:the:instance' (110) — The server is not responding.
验证 ipv6
由于我使用 ipv6 进行连接,我必须确认我没有产生幻觉,并且我确实是从 ipv6 客户端进行连接。
phpMyAdmin 是从http://[my:own:ipv6:address]/index.php 运行的,所以毫无疑问我确实在使用 ipv6
[edit] 正如@David 所建议的那样,我从客户端运行ping6 www.google.com 并工作,还检查了客户端可以通过从另一台计算机(从windows :ping -6 my:own:ipv6:address)
参考文献
- Connecting MySQL Client Using IP Addresses
- Using phpMyAdmin with Cloud SQL on App Engine Standard Environment
- Diagnosing Issues with Cloud SQL Instances
我尝试过的其他事情
- 另一个用户:root,有密码的用户
- 到另一个新的云 sql 实例
- 检查了控制台log viewer,没什么有趣的
- 非常确定在我请求的域上我的 ipv6 有一个
AAAA,该 ip 解析并且我的 dns 完美运行 - 我没有使用代理
任何帮助将不胜感激连接或至少调试正在发生的事情。我想澄清一下,我不认为自己在网络相关的东西上高于新手。
【问题讨论】:
标签: mysql phpmyadmin ipv6 google-cloud-sql