简体   繁体   English

在Google App Engine上安装phpMyAdmin

[英]Install phpMyAdmin on Google App Engine

So I've read through everything I can find via google and still no love, I'm unable to get PMA to connect to the CloudSQL servers. 因此,我已经阅读了所有可以在Google上找到的内容,但仍然没有爱情,我无法让PMA连接到CloudSQL服务器。

I just keep receiving this error message when attempting to login: 尝试登录时,我只会收到以下错误消息:

#2002 Cannot log in to the MySQL server

here's my config currently: 这是我的当前配置:

$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['host'] = ':/cloudsql/<project-id>:<instance>';
$cfg['Servers'][$i]['connect_type'] = 'socket';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['AllowRoot'] = true;
$cfg['Servers'][$i]['AllowNoPassword'] = false;

I've tried changing the "connect_type" to tcp & switching out the host for the IP but no love. 我尝试将“ connect_type”更改为tcp并为IP切换出主机,但没有爱。

I've also tried these variables for the "host": 我也尝试过将这些变量用作“主机”:

$cfg['Servers'][$i]['host'] = ':/cloudsql/<project-id>:<instance>';
$cfg['Servers'][$i]['host'] = '/cloudsql/<project-id>:<instance>';
$cfg['Servers'][$i]['host'] = 'cloudsql/<project-id>:<instance>';

any help would be greatly appreciated, i've been banging my head against a wall for a few days now. 任何帮助将不胜感激,我已经将头撞在墙上几天了。

NOTE: I have added my project-id to the credentials for the CloudSQL instance and tested via PHP PDO that I can connect from the project to the database. 注意:我已经将我的项目ID添加到CloudSQL实例的凭据中,并通过PHP PDO进行了测试,可以将其从项目连接到数据库。

The thing that held me up for days (I can't even be ticked at myself, I have to laugh) When they say https://phpmyadmin-dot-myapp.appspot.com/ thats exactly what they mean. 使我困扰了好几天的事情(我什至不能被自己打勾,我不得不笑)当他们说https://phpmyadmin-dot-myapp.appspot.com/时 ,它们的意思恰恰是这样。 I automatically replaced -dot- with a . 我自动将-dot-替换为。 like phpmyadmin.myapp.appspot.com 像phpmyadmin.myapp.appspot.com

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM