SQLSTATE[HY000] [1045] Access denied for user ' root'@'127.0.0.1' (using password: YES)
错误位置
FILE: /data/wwwroot/default/ThinkPHP/Library/Think/Db/Driver.class.php LINE: 109
本地测试一切正常,放到阿里ECS上就出现这个问题。php版本都是 php5.5。只不过阿里ECS上用的是nginx,本地apache测试
确认数据库用户名密码是正确的,因为安装了discuz正常访问,地址试过localhost以及远程IP。
纠结了好久真不知道是什么问题。。。。
--------------------------------------------------------------------------
已解决自己配置有个小错误
最佳答案
