Testlink 机器重启后Access denied for user 'admin '@'localhost' (using password: YES)解决(示例

Posted Rosepotato

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Testlink 机器重启后Access denied for user 'admin '@'localhost' (using password: YES)解决(示例相关的知识,希望对你有一定的参考价值。

问题表现:

 

     装完Testlink,重启系统后,在testlink权限未分配会出现如下提示:

1045 - Access denied for user ‘Testlink ‘@‘localhost‘ (using password: YES)
问题分析:
     引起该问题的原因有两种
a)用户在安装testlink时输入新建的用户testlink首字母使用了大写(注意mysql用户是区分大小写的)

b)用户在mysql管理更换了testlink的密码
解决方法:
     针对a)种情况 ,在testlink的安装目录下找到config_db.inc.php这个文件,打开并将其中的define(‘DB_USER‘, ‘Testlink‘);将红色标识部分修改成相应的用户名即可(注意大小写,不要有空格)!
     针对b)种情况 ,在testlink的安装目录下找到config_db.inc.php这个文件,打开并将其中的define(‘DB_PASS‘, ‘Testlink‘);将红色标识部分修改成相应的密码即可!
 
注意:我本地的DB_USER 是 "admin". 我遇到的是b)情况,将密码改了就行了。

以上是关于Testlink 机器重启后Access denied for user 'admin '@'localhost' (using password: YES)解决(示例的主要内容,如果未能解决你的问题,请参考以下文章

thinkphp Access denied.怎么解决,求大神解答

denied: requested access to the resource is denied

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)错

putty登录出现access denied的解决办法

Laravel [1045] 解决方法 Access denied for user 'homestead'@'localhost'

java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YE