1.PHP调试出错1045:Access denied for user 'root'@'localhost' (using password: YES)
你的数据库连接文件里的用户名和密码设的不对
在config.php里改下你mysql的帐户的用户名和密码
启动mysql:
# service mysqld start
mysql -u root
mysql> use mysql
mysql> UPDATE user SET Password=PASSWORD('xxx') WHERE user='root';
mysql> flush privileges;
mysql>\q
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/12878495/viewspace-617699/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/12878495/viewspace-617699/