grep 'temporary password' /var/log/mysqld.log 2022-08-29T12:54:45.611581Z 1 [Note] A temporary password is generated for root@localhost: coB%QWo(_1yZ 2023-06-09T11:08:59.734503Z 1 [Note] A temporary password is generated for root@localhost: GU;1oD2Yyl&l 2023-06-09T11:12:07.553716Z 1 [Note] A temporary password is generated for root@localhost: kEkQ8rl9p:wQ
时间: 2024-04-03 11:31:56 浏览: 154
k8s.gcr.io/kube-state-metrics/kube-state-metrics:v2.4.2镜像
好的,你已经成功使用了 `grep 'temporary password' /var/log/mysqld.log` 命令来查询 MySQL 的日志文件中生成的初始密码。可以看到,在不同的时间点,MySQL 为 root@localhost 用户生成了不同的临时密码。你可以使用这些临时密码来登录 MySQL,然后修改为自己想要的密码。
阅读全文