1 頁 (共 1 頁)

[問題]phpMyAdmin 2.5.1問題

發表於 : 2004-02-17 09:52
pireer
各位大大.我是php新手.想請問一個問題.
安裝mysql4.0.17forwin之後.
在安裝phpMyAdmin 2.5.1
ie輸入http://192.168.1.3/phpMyAdmin-2.5.1/index.php.
出現:

錯誤
MySQL 傳回:
Access denied for user: 'root@pireer' (Using password: YES)

設定如下
$cfg['Servers'][$i]['host'] = '192.168.1.3'; // MySQL hostname
$cfg['Servers'][$i]['port'] = ''; // MySQL port - leave blank for default port
$cfg['Servers'][$i]['socket'] = ''; // Path to the socket - leave blank for default socket
$cfg['Servers'][$i]['connect_type'] = 'tcp'; // How to connect to MySQL server ('tcp' or 'socket')
$cfg['Servers'][$i]['compress'] = FALSE; // Use compressed protocol for the MySQL connection
// (requires PHP >= 4.3.0)
$cfg['Servers'][$i]['controluser'] = ''; // MySQL control user settings
// (this user must have read-only
$cfg['Servers'][$i]['controlpass'] = ''; // access to the "mysql/user"
// and "mysql/db" tables)
$cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = 'root'; // MySQL user
$cfg['Servers'][$i]['password'] = '123456'; // MySQL password (only needed

我也有依照之前文章做設定.可以登入.但phpMyAdmin會出現權限不夠.請大大們幫幫忙..感激不盡.謝謝

Re: [問題]phpMyAdmin 2.5.1問題

發表於 : 2004-02-21 23:15
幻狼神威
pireer 寫: 錯誤
MySQL 傳回:
Access denied for user: 'root@pireer' (Using password: YES)
帳號密碼錯誤......
pireer 寫: $cfg['Servers'][$i]['user'] = 'root'; // MySQL user
$cfg['Servers'][$i]['password'] = '123456'; // MySQL password (only needed
應該是要改這兩行吧.......