phpMyAdmin问题

来源:百度知道 编辑:UC知道 时间:2024/05/17 05:48:44
安装完phpMyAdmin后,测试:http://localhost/phpMyAdmin/
出现了:Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in C:\PHP\phpMyAdmin\libraries\config.default.php on line 404

我用的是phpMyAdmin-2.10.0.2-all-languages.zip 的版本~
不知道哪里出现了问题,PHP和MYSQL连接正常,但phpMyAdmin却无法运行

config.default.php里面的
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['PmaAbsoluteUri']='http://localhost/phpMyAdmin/ '
都已经配置好了~
出现上述错误~
请大家帮帮忙,谢谢~

≡ phpMyAdmin 2.10.0.2 的安装 ≡

1、到其官方站点下载 phpMyAdmin-2.10.0.2-all-languages.zip并解压,并更改目录名为phpmyadmin,然后移动到"C:\htdocs\WEB\"。
2、编辑:libraries下的config.default.php。
查找:
$cfg['Servers'][$i]['auth_type'] = 'config'; // 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)
$cfg['Servers'][$i]['nopassword'] = FALSE; // Whether to try to connect without password
$cfg['Servers'][$i]['only_db'] = ''; // If set to a db-name, only
// this db is displayed in left frame
// It may also be an array of db-names, where sorting order is relevant.
这里由于是本地测试环境,所以所按默认值,不需要更改。
查找:
$cfg['DefaultLang'] = 'en-iso-8859-1';
替换: