試着我的Fedora服務器上安裝phpMyAdmin,但如果我在瀏覽器中打開它,我得到一個錯誤:phpMyAdmin - 下一個配置會怎樣?
2002無法登錄MySQL服務器
文件config.inc.php中有一個內容:
<?php
/* Servers configuration */
$i = 0;
/* Server: localhost [1] */
$i++;
$cfg['Servers'][$i]['verbose'] = '';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = '';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '123';
/* End of servers configuration */
$cfg['blowfish_secret'] = '4c45c50fe8b283.01675296';
$cfg['DefaultLang'] = 'en-utf-8';
$cfg['ServerDefault'] = 1;
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
?>
只是添加,MySQL中我創建用戶root,密碼爲123,這樣我就可以登錄:
mysql -h localhost -u root -p123
可以幫助米e問題在哪裏?
是'-p123'只是複製和粘貼錯字?應該是'-p 123' – DrColossos 2010-09-13 09:01:06
@DrColossos nope,這實際上是正確的符號。 '-p 123'將不起作用 – 2010-09-13 09:14:22
嗯從來沒有使用MySQL shell ...這是更明顯的(不幸的是:(:(錯誤:()猜測,但感謝糾正。 – DrColossos 2010-09-13 09:16:44