那么,如果你正在开发环境中测试它,那么你现在可以简单地忽略cloudSQL路由。
我相信你需要做以下检查,你可以用简单的MySQL连接连接功能,然后请确保安装的MySQLi(因为在未包括谷歌应用程序引擎的网络安装步骤)
$link = mysql_connect('localhost', 'admin', 'password');
if(!$link) {
die('Could not connect: ' . mysql_error());
}else{
mysql_close($link);
echo 'Connected successfully and everything seems fine .... Checking MySQLi Installation<br><br>';
if(function_exists('mysqli_connect')) {
echo 'MySQLi is Installed :S';
}else{
echo 'Oops. You need to reconfigure Your PHP Installation to Include MySQLi';
}
}
如果你得到这样的回应:
连接成功,一切似乎罚款....检查MySQLi的安装
哎呀。你需要重新配置你的PHP安装程序以包括库MySQLi
那么你可能需要重新运行配置,使库MySQLi & PDO驱动
./configure --prefix=$PWD/installdir --enable-bcmath --with-mysql --with-pdo-mysql --with-mysqli