有三个web程序,其中有两个可以用root连接mysql,第三个报错:
MySQL server error report:
Error:Access denied for user 'root'@'localhost' (using password: YES)
Errno:1045
已经确定不是PHP配置问题。各位老大这是什么情况?
MySQL server error report:
Error:Access denied for user 'root'@'localhost' (using password: YES)
Errno:1045
已经确定不是PHP配置问题。各位老大这是什么情况?
#加上这句试试,意义为无限制用户登录
grant all on *.* to '%'@'localhost' identified by 'password';
共有3个程序,昨天2个突然连不上了,我改了权限之后,有一个可以连上了,还有一个连不上。
改权限的方法就是用 grant all on *.* to 'remote'@'172.16.21.39' identified by 'password';
我用了这句 grant all on *.* to 'root'@'localhost' identified by 'password';还是没有效果。
报错:
MySQL server error report:
Error:Access denied for user 'root'@'localhost' (using password: YES)
Errno:1045
你的第三程序的代码页有没有读写权限?
-rwxrwxrwx
命令行试过了,可以连上。我再具体一些吧:
服务器上装有discuz!2.5 ,在discuz!2.5目录里安装了ecmall。discuz可以连上,但ecmall连不上。两个使用的是同一数据库。
谢谢各位的关注。