在還沒搬走www的主根目錄前還能正常登入和使用 (預設為htdocs)
但當我移動主目錄到別的資料夾後,在phpmyadmin內登入後卻出現:
"無法登入 MySQL 伺服器"
我在config.ini.php找了很久還是無法修復,請問各位大大有否解決辦法呢?
版主: 版主管理群
代碼: 選擇全部
$cfg['Servers'][$i]['auth_type'] = 'http'; // Authentication method (config, http or cookie based)
$cfg['Servers'][$i]['user'] = 'root'; // MySQL user
$cfg['Servers'][$i]['password'] = ''; // MySQL password (only needed
// with 'config' auth_type)


我已使用cookie了,但在輸入密碼後仍不能登入n00b 寫:缺省是config,改為http或者cookie可以登錄時輸入密碼和用戶名,安全性高。代碼: 選擇全部
$cfg['Servers'][$i]['auth_type'] = 'http'; // Authentication method (config, http or cookie based) $cfg['Servers'][$i]['user'] = 'root'; // MySQL user $cfg['Servers'][$i]['password'] = ''; // MySQL password (only needed // with 'config' auth_type)


妳若想讓www作WEB的主目錄,脩改DocumentRoot就可以暸。Kazuma 寫:我首先設置好phpmyadmin內的使用者 (已使用mysql 4.1密碼設定),n00b 寫:我將原來的htdocs改名,然后新建一個空的資料夾名為htdocs,也沒有齣現妳的那種情況。
還是具體說說妳的情況?
再保留htdocs的內容,在xampp外新增www資料夾,
把phpmyadmin整個放進去,最後修改apache的http.conf指向www作
serveroot等等,重開apache後發現phpmyadmin(mysql)都不能登入啊
代碼: 選擇全部
Alias /phpmyadmin "C:/www/phpMyAdmin/"
<Directory "C:/www/phpMyAdmin">
Order allow,deny
Allow from all
</Directory>

