关于phpMyAdmin的问题,求教!

用apache配置完后,用phpadmin来访问mysql后显示如下:
Welcome to phpMyAdmin 2.3.2

Error

MySQL said:

Access denied for user: 'root@localhost' (Using password: NO)

求教!
---------------------------------------------------------------

这种情况是由于您没有正确的设置MySQL的访问密码所致,解决方法是编辑phpMyAdmin安装目录下的config.inc.php,在
$cfg['Servers'][$i]['password'] = ''设置您的MySQL访问口令,或者修改cfg['Servers'][$i]['auth_type'] 配置如下,采用http的认证方式
$cfg['Servers'][$i]['auth_type'] = 'http';
另外还要注意修改
$cfg['PmaAbsoluteUri'] = '';
为你访问phpMyAdmin的URL地址。

Published At
Categories with Web编程
comments powered by Disqus