查看文章 |
关于phpmyadmin的#1045 - Access denied for user 'root'@'localhost' (using password:
2009/11/06 10:39
安装完phomyadmin后出现#1045 - Access denied for user 'root'@'localhost' (using password: NO)错误,找了半天原因,搜索了半天都没有解决。最终自己搞定,却很简单的事情。 #1045 - Access denied for user 'root'@'localhost' (using password: NO)的问题解决办法,原因就是需要更改 phpMyAdmin文件夹中的config.sample.inc.php的文件名修改为config.inc.php,然后编辑config.inc.php中 $cfg['Servers'][$i]['controluser'] = 'pma'; $cfg['Servers'][$i]['controlpass'] = 'pmapass'; 中的用户和密码为自己的mysql用户名和密码.问题搞定! 同时要修改$cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */ 为:$cfg['blowfish_secret'] = '****'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */ “****”为任意数。 |
最近读者: