im trying to connect to google cloudsql from appengine, but im facing this error:
No connection could be made because the target machine actively refused it
my php file, that i have uploaded to appengine:
$sql = new mysqli(null,
'myuser', // username
'mypass'
'mydb',
null,
'/cloudsql/**:**'
);
if ($mysqli->connect_error) {
echo 'no';
die('Connect Error (' . $mysqli->connect_errno . ') '
. $mysqli->connect_error);
}
else {
echo 'yes\n';
}
the appengine is allowed from the cloud sql. what should i do ?
im trying to connect to google cloudsql from appengine, but im facing this error:
No connection could be made because the target machine actively refused it
my php file, that i have uploaded to appengine:
$sql = new mysqli(null,
'myuser', // username
'mypass'
'mydb',
null,
'/cloudsql/**:**'
);
if ($mysqli->connect_error) {
echo 'no';
die('Connect Error (' . $mysqli->connect_errno . ') '
. $mysqli->connect_error);
}
else {
echo 'yes\n';
}
the appengine is allowed from the cloud sql. what should i do ?
0 commentaires:
Enregistrer un commentaire