Hi guys, wordpress on App Engine Tailing my app engine logs it looks like the app connects to cloud sql no problem
2017-03-23 01:23:54 default[20170322t211153] 172.18.0.3 - - [23/Mar/2017:01:23:54 +0000] "GET /wp-admin/install.php HTTP/1.1" 500 4110 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36"2017-03-23 01:23:54 default[20170322t211153] 2017/03/23 01:23:54 New connection for "mike-kahn-personal:us-east1:mkahn-com-db"2017-03-23 01:23:54 default[20170322t211153] 2017/03/23 01:23:54 Instance mike-kahn-personal:us-east1:mkahn-com-db closed connection But the application (wordpress) returns: Error establishing a database connection This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at :/cloudsql/mike-kahn-personal:us-east1:mkahn-com-db. This could mean your host’s database server is down. https://mike-kahn-personal.appspot.com/wp-admin/install.php wp-config.php details: /** Production environment */ define('DB_HOST', ':/cloudsql/mike-kahn-personal:us-east1:mkahn-com-db'); /** The name of the database for WordPress */ define('DB_NAME', 'mkahn_wrdp1'); /** MySQL database username */ define('DB_USER', 'root'); /** MySQL database password */ define('DB_PASSWORD', ''); Is the DB host in the correct format? From searching I found it should be connectionName, or project:location:cloudsqlinstancename which I have correct. app.yaml file: runtime: phpenv: flexbeta_settings: cloud_sql_instances: mike-kahn-personal:us-east1:mkahn-com-dbruntime_config: document_root: wordpressenv_variables: WHITELIST_FUNCTIONS: escapeshellarg,escapeshellcmd,exec,pclose,popen,shell_exec,phpversion,php_uname Thanks in advance! Mike -- 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 post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/31a04956-5c65-4685-a47c-1f6e6d368cb1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
