将nodejs连接到谷歌云SQL

我正在尝试将nodejs的一个实例连接到我的Google云SQL数据库。 它的失败。

我运行命令

node server.js 

并得到错误

 Problem with MySQL Error: connect ENETUNREACH 

这里是我的server.js文件

 var gcloud = require("gcloud"); var express = require("express"); var mysql = require("mysql"); var app = express(); var connection = mysql.createConnection({ host : "2001:****:****:*:****:****:****:****", user : "root", password : "*****", database : "scripto_5_k" }); /* Connection to Database */ connection.connect(function(error){ if(error) { console.log("Problem with MySQL "+error); } else { console.log("Connected with Database "); } }); /*start the server */ app.listen(3000,function(){ console.log("its started on PORT 3000"); }); 

我已经去了我的SQL数据库在开发者控制台,并允许我的家庭和节点js实例的IP地址,但我似乎无法find问题。

任何帮助真的很感激。

更新1

我用这个结果ping IPv6地址

 C:\Users\joe>ping 2001:****:****:*:****:****:****:**** Pinging 2001:****:****:*:****:****:****:**** with 32 bytes of data: Request timed out. Request timed out. Request timed out. Request timed out. Ping statistics for 2001:****:****:*:****:****:****:****: Packets: Sent = 4, Received = 0, Lost = 4 (100% loss), 

但是我已经从gcloud上的sql选项卡的属性中取得了ip。

主机地址可能是错误的。 你有尝试过吗?