0
Google云SQL新手。我刚刚在云控制台中创建了一个实例。Google Cloud SQL实例通过本地phpMyAdmin
现在我想通过我的本地主机phpMyAdmin连接到该实例。但是CloudSQL没有任何主机名来配置。它只有IPV6地址。所以我很困惑如何去做。我已经尝试通过使用ipv6地址编辑'config.inc.php'文件。但它给了我下面的错误
2002 - php_network_getaddresses:getaddrinfo失败:没有这样的主机是已知的。
服务器没有响应(或本地服务器的套接字未正确配置)。
而且我的配置文件的详细信息都低于
$i++;
$cfg['Servers'][$i]['verbose'] = '*****';
$cfg['Servers'][$i]['host'] = '2001:4860:4864:1:****:****:***:****';
$cfg['Servers'][$i]['port'] = '';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '**********';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
您安装phpmyadmin的主机是否具有IPv6连接? – 2015-02-10 16:22:18
@RowlandShaw我刚刚在我的笔记本电脑上安装了phpmyadmin。我需要额外的软件来连接IPv6吗? – 2015-02-10 16:23:58
如果您的网络不支持IPv6,您总是可以获得IPv4地址并使用该地址。 – 2015-02-10 16:59:22