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實例的機會嗎?