1
我跟着these说明让phpMyAdmin在AppEngine上工作。但是,我无法在本地工作。以下是我已经试过我的config.inc.php
文件:无法在本地连接phpMyAdmin和AppEngine
$cfg['blowfish_secret'] = 'ZZZZZZZZZ';
/*
* Servers configuration
*/
$i = 0;
$isGAE = isset($_SERVER['SERVER_SOFTWARE']) &&
strpos($_SERVER['SERVER_SOFTWARE'],'Google App Engine') !== false;
/*
* First server
*/
$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
if ($isGAE) {
$cfg['Servers'][$i]['socket'] = '/cloudsql/XXXXXX:YYYYYY';
$cfg['Servers'][$i]['connect_type'] = 'socket';
} else {
$cfg['Servers'][$i]['verbose'] = 'localhost';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['port'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
}
$cfg['Servers'][$i]['compress'] = false;
/* Select mysql if your server does not have mysqli */
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
/*
* End of servers configuration
*/
/*
* Directories for saving/loading files from server
*/
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
/*
* Other settings
*/
$cfg['PmaNoRelation_DisableWarning'] = true;
$cfg['ExecTimeLimit'] = 60;
$cfg['CheckConfigurationPermissions'] = false;
当我在目录中运行dev_appserver.py .
,它运行,我得到一个“不登录”屏幕[email protected]。我检查管理员框,然后尝试输入我的本地根证书。但是,它告诉我“无法登录到MySQL服务器”。当我在本地运行mysql -u root -p
时,我可以使用相同的密码成功登录。
任何想法?现有的教程可以扩展到谈论连接到本地mysql实例的机会吗?