Connect to local MySQL in App Engine with PHP

2013-05-27T23:26:04

I am testing the new App Engine PHP SDK (development environment) and have a problem connecting to my local MySQL.

I start the dev_appserver.py with the necessary paramters telling it where my MySQL is (--mysql_host=localhost --mysql_port=3306 --mysql_user=admin --mysql_password=password but still it's impossible to make a connection using the mysqli_connect command from the PHP script.

Somewhere I read that, with these commands, even a connection to cloudSQL should be routed...

Any suggestions what to look at next?

Ben

Copyright License:
Author:「user2425533」,Reproduced under the CC 4.0 BY-SA copyright license with link to original source & disclaimer.
Link to:https://stackoverflow.com/questions/16776245/connect-to-local-mysql-in-app-engine-with-php

About “Connect to local MySQL in App Engine with PHP” questions

I am testing the new App Engine PHP SDK (development environment) and have a problem connecting to my local MySQL. I start the dev_appserver.py with the necessary paramters telling it where my MyS...
Is it possible to work with Google App Engine just with local MYSQL and not using Cloud SQL? Class.forName("com.mysql.jdbc.Driver"); Connection connect = DriverManager .getConnect...
I am able to connect to Google Cloud hosted mySQL database from a local sever (using the proxy) but I am not able to do so from Google App Engine. The App Engine instance and Google Cloud mySQL ins...
I want to migrate my website (PHP + MySQL) from shared hosting to Google Cloud. My first attempt was to host the database on Google Cloud SQL and deploy the PHP code to the App Engine standard
I want to connect to mysql-server deployed on compute engine with mysql workbench or with mysql-client from local computer. How can i do it?. I tried this .I am able to connect from other vm but no...
I successfully created a Compute Engine VM instance, and installed MySQL on it using this guide: https://cloud.google.com/solutions/setup-mysql Now I want to connect to it from App Engine and from my
I'm building a pretty conventional PHP/MySQL back end to a mobile app, and I've been bitten hard for not closing MySQL connections properly in the past... If I'm using mysqli_connect() to connect ...
I have a Google App Engine application that is running, database is set up and should be working (works with development server), but cannot connect to the database when the app is deployed. I get ...
I've configured SQL second gen. instance and App Engine application (Python 2.7) in one project. I've made necessary settings according to that page. app.yaml runtime: python27 api_version: 1
I have a mysql container on my compute engine and I would like my App Engine to be able communicate with it. I'm using django and have the below settings DATABASES = { 'default': { 'E...

Copyright License:Reproduced under the CC 4.0 BY-SA copyright license with link to original source & disclaimer.