[google-appengine] Re: PHP app engine cannot connect to cloud sql

2020-05-31 Thread Jukka Hautakorpi
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/xprojectname:europe-west1:yyysqlinstancename" And in app.yaml, maybe not both.. env_variables:

Re: [google-appengine] Re: PHP app engine cannot connect to cloud sql

2018-06-19 Thread SPED MAKER
Sorry to bring subject to again. Before i was using mysql_query but because the change the php version i migrate to query. I read in de somewhere that GAE not work with mysqli, you managed to make it work Victor Alves Fones: 3892-7580 Celular: 9.4711-7418 A dúvida é o princípio do

Re: [google-appengine] Re: PHP app engine cannot connect to cloud sql

2018-04-12 Thread Ravi Shanker
I am also facing same issue in laravel with APP engine , Yes I have enabled API On Friday, June 2, 2017 at 11:12:20 AM UTC+5:30, tmatsuo wrote: > > Do you guys have sqladmin API enabled? > You can check it at: > https://console.cloud.google.com/apis/api/sqladmin.googleapis.com/overview > > On

[google-appengine] Re: PHP app engine cannot connect to cloud sql

2017-10-31 Thread Attila-Mihaly Balazs
I'm no PHP expert, but I believe that for mysqli_connect to work with Unix Domain Sockets, one must specify "localhost" for the host and the socket as the last parameter. From here: https://stackoverflow.com/a/13771199/1265 The syntax would be: mysqli_connect("localhost",

[google-appengine] Re: PHP app engine cannot connect to cloud sql

2017-10-28 Thread Lendi App
Hi, I am receiving mysqli_connect(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: Name or service not known I have the following $socket_prod=":/cloudsql/projectid:europe-west1:databaseinstance"; $dbuser_prod="root"; $dbpass_prod="root_pasw"; $dbname_prod="db_name"; $conn =

[google-appengine] Re: PHP app engine cannot connect to cloud sql

2017-10-11 Thread Abdulaziz Yaakup
Hi, I also faced same issue on this GAE flex env. But, I solve it by adding the GAE instance VM's ip address to the Cloud SQL Authorized Network. Btw, if I set using unix_socket connection at MYSQL_DSN did not work at all for me. So, just set it with host and database name

Re: [google-appengine] Re: PHP app engine cannot connect to cloud sql

2017-07-04 Thread Paulo Henrique
The problem was inside app.yaml as exposed above. Just just ensure to wrap your connection variables between quotes, so PHP doesn't parse the DSN as local path. Em ter, 4 de jul de 2017 10:19, SPED MAKER escreveu: > Share you code. > > Em 4 de jul de 2017 10:02 AM, "Paulo

Re: [google-appengine] Re: PHP app engine cannot connect to cloud sql

2017-07-04 Thread SPED MAKER
Share you code. Em 4 de jul de 2017 10:02 AM, "Paulo Henrique" escreveu: > Hi there! > > I tried your solution but I'm still getting this same error. > Anyone found a way to overcome this... please share with this group. > Thanks... > > -- > You received this message

[google-appengine] Re: PHP app engine cannot connect to cloud sql

2017-07-04 Thread Paulo Henrique
Just got it to work now: > I was not using environment variables as shown in the tutorials. I changed > the code to follow their guidelines, but still, could not get it to connect > to Cloud SQL. Turned out that the problem was ridiculously simple. In app.yaml, the env_variables were missing

[google-appengine] Re: PHP app engine cannot connect to cloud sql

2017-07-04 Thread Paulo Henrique
> > Hi there! I tried your solution but I'm still getting this same error. Anyone found a way to overcome this... please share with this group. Thanks... -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group

Re: [google-appengine] Re: PHP app engine cannot connect to cloud sql

2017-06-23 Thread SPED MAKER
Não cheguei a testar com mysqli, mas como a string de conexão é muito parecida.. acho que funciona também Pelo que entendi o macete está em: $server = ":/cloudsql/INSTANCE_CONNECTIO N_NAME"; porque a conexão não fica disponível através de um endereço IP. Victor Alves Fones: 4237-7740

[google-appengine] Re: PHP app engine cannot connect to cloud sql

2017-06-23 Thread Thomas Valadez
is it possible to use mysqli? On Wednesday, June 7, 2017 at 2:05:23 PM UTC-6, SPED MAKER wrote: > > i did have the same problem.. > You no need use a global variable available in app.yaml. > > the sample suggest to use: > > >

[google-appengine] Re: PHP app engine cannot connect to cloud sql

2017-06-07 Thread SPED MAKER
i did have the same problem.. You no need use a global variable available in app.yaml. the sample suggest to use: 'mysql:unix_socket=/cloudsql/testproject-xx:us-central1:library;dbname=books', but like you said, this method works to PDO to connect with mysql_connect you can use:

Re: [google-appengine] Re: PHP app engine cannot connect to cloud sql

2017-06-03 Thread Karthik Sekar
Yes like Subhash said it's the same situation for me. I had to spin a compute engine because of this. I discovered that i had to add the compute engine's external ip to cloud sql's allowed networks list. I have the sql admin access scope for the compute engine but still I couldn't use unix

Re: [google-appengine] Re: PHP app engine cannot connect to cloud sql

2017-06-02 Thread Subash PS
it is connected from appengine standard environment *Thanks & RegardsSubash.P.S* On 2 June 2017 at 11:11, Takashi Matsuo wrote: > Do you guys have sqladmin API enabled? > You can check it at: >

Re: [google-appengine] Re: PHP app engine cannot connect to cloud sql

2017-06-01 Thread Takashi Matsuo
Do you guys have sqladmin API enabled? You can check it at: https://console.cloud.google.com/apis/api/sqladmin.googleapis.com/overview On Sun, May 28, 2017 at 8:29 PM Subash PS wrote: > I amm also facing the same issue > > app.yaml > > env: flex > runtime: php >

[google-appengine] Re: PHP app engine cannot connect to cloud sql

2017-05-28 Thread Subash PS
I amm also facing the same issue app.yaml env: flex runtime: php runtime_config: document_root: . env_variables: # Replace project, instance, database, user and password with the values obtained # when configuring your Cloud SQL instance. MYSQL_DSN:

[google-appengine] Re: PHP app engine cannot connect to cloud sql

2017-05-20 Thread Karthik Sekar
Hi Nicolas, I still have this same issue I am getting the error SQLSTATE[HY000] [2002] No such file or directory when trying to connect to Cloud SQL from my app engine. It works fine on my "default" service which is a PHP standard environment. I have this issue in my custom runtime flexible

[google-appengine] Re: PHP app engine cannot connect to cloud sql

2017-05-08 Thread 'Nicholas (Google Cloud Support)' via Google App Engine
Connecting to a Cloud SQL instance requires the use of a Unix socket and the appropriate extension available to the runtime. *mysql* and *mysqli* are enabled by default in the PHP runtime for App Engine.

[google-appengine] Re: PHP app engine cannot connect to cloud sql

2017-04-30 Thread Abinav Chandar
Can this only be done with the PDO or can it also be done with mysql_connect() On Thursday, September 29, 2016 at 5:11:22 PM UTC-5, Kevin Lau wrote: > > > down votefavorite > > > I am trying to

[google-appengine] Re: PHP app engine cannot connect to cloud sql

2016-09-29 Thread Kevin Lau
Figured this out, it was adding this to the app.yaml beta_settings: cloud_sql_instances: "" On Thursday, September 29, 2016 at 3:11:22 PM UTC-7, Kevin Lau wrote: > > > down votefavorite > >