已解决 ERROR 1045 (28000): Access denied for user 'root'@'localhost'

我使用docker版安装的,安装后启动可以用,后来一次服务器重启,然后访问就无响应了。

我查看docker日志:

 * 

 * The apache2 instance did not start within 20 seconds. Please read the log files to discover problems

 * Starting MariaDB database server mysqld

   ...done.

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

 * Starting Apache httpd web server apache2

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.8. Set the 'ServerName' directive globally to suppress this message

httpd (pid 25) already running



密码是默认的123456,

我又试着修改了修改了密码,然后 在命令行 执行 mysql -uroot -p 是可以进入的。

我又修改了my.php,替换了修改的密码,可是启动依然是报同样的错误。


现在来说,密码是正确的,应该是配置的不正确,但是除了修改my.php, 还需要修改哪里吗?


禅道版本 11.3.stable 源码包
操作系统 Ubuntu
客户端浏览器 Chrome

提问者: 一晌贪欢 悬赏:10 日期: 2019-03-27 20:26:04 答案:1 点击:3748

获取技术支持

QQ: 电话:
设置备注
答案列表
2019/03/28

可以加一下网页上方QQ,邀请进群方便发送截图,排查问题。

2021/08/20
我也出现了这个问题 具体怎么解决的呢