简体   繁体   English

MySQL root密码不在mysqld.log中

[英]MySQL root password not in mysqld.log

I'm trying to install MySQL 5.7.18 on Fedora 25. 我正在尝试在Fedora 25上安装MySQL 5.7.18。

I'm following this link: https://www.if-not-true-then-false.com/2010/install-mysql-on-fedora-centos-red-hat-rhel/ 我正在关注此链接: https : //www.if-not-true-then-false.com/2010/install-mysql-on-fedora-centos-red-hat-rhel/

I get stuck on here on step 5: grep 'A temporary password is generated for root@localhost' /var/log/mysqld.log |tail -1 我在步骤5停留在这里:grep'为root @ localhost生成了一个临时密码'/var/log/mysqld.log | tail -1

I get no output and I checked the logs, there no password. 我没有输出,我检查了日志,没有密码。 I also checked if MySQL is running. 我还检查了MySQL是否正在运行。

I also have log-error=/var/log/mysqld.log in /etc/my.cnf 我在/etc/my.cnf中也有log-error = / var / log / mysqld.log

这意味着您的日志文件中没有生成密码,因此只需按Enter即可,没有任何密码

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM