With php 5.6 application sql-connection was working fine with mysqli 
procedural.
But not with FLEX

Turns out that you need:

php.ini with
mysqli.default_socket="/cloudsql/xxxxxprojectname:europe-west1:yyysqlinstancename"

And in app.yaml, maybe not both..
env_variables:
  CLOUDSQL_CONNECTION_NAME: 
"xxxxxprojectname:europe-west1:yyysqlinstancename"

beta_settings:
  cloud_sql_instances: "xxxxxprojectname:europe-west1:yyysqlinstancename"

And also when connecting, cannot leave server address empty anymore, but 
put localhost
    $db_host  =  'localhost';
    $db_user  =  "root"; // mySQL database user
    $db_password  =  "zzzz"; // mySQL database password 
    $db_name  =  "nnnnnn"; // the name of your mySQL database
    $db_socket  =  
"/cloudsql/xxxxxprojectname:europe-west1:yyysqlinstancename"; //no : in 
starting of this string!
    $db_port = null;
$mysqli = new mysqli($db_host, $db_user, $db_password, $db_name, $db_port, 
$db_socket);


-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/d3416995-4a3e-4ad1-b13a-ba6dc6c2f686%40googlegroups.com.

Reply via email to