在Google App Engine上安装phpMyAdmin [英] Install phpMyAdmin on Google App Engine
问题描述
因此,我已经通读了所有可以通过Google找到的内容,但仍然没有爱情,我无法让PMA连接到CloudSQL服务器.
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.
尝试登录时,我只会收到以下错误消息:
I just keep receiving this error message when attempting to login:
#2002 Cannot log in to the MySQL server
这是我当前的配置:
$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;
我尝试将"connect_type"更改为tcp&为IP切换主机但没有爱.
I've tried changing the "connect_type" to tcp & switching out the host for the IP but no love.
我也尝试过将这些变量用作主机":
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.
注意:我已将我的项目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. I automatically replaced -dot- with a . like phpmyadmin.myapp.appspot.com
这篇关于在Google App Engine上安装phpMyAdmin的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!