douliao8318 2014-10-11 04:07
浏览 45

在Google App Engine上安装phpMyAdmin

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

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.

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.

  • 写回答

1条回答 默认 最新

  • dsjj15012 2018-11-18 18:39
    关注

    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

    评论

报告相同问题?

悬赏问题

  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 关于大棚监测的pcb板设计
  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器
  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)