0

I'm trying to install MySQL 5.7.18 on Fedora 25.

I'm following this link: 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

I get no output and I checked the logs, there no password. I also checked if MySQL is running.

I also have log-error=/var/log/mysqld.log in /etc/my.cnf

9
  • What version of MySQL are you trying to install? Versions prior to 5.6 don't generate a root password or write it in the log. May 10, 2017 at 20:50
  • So try logging in user root with no password. Does that work
    – RiggsFolly
    May 10, 2017 at 20:50
  • In my experience, Fedora's mysql setup results in a passwordless root account (it's been a little while though). May 10, 2017 at 20:51
  • @BillKarwin 5.7.18
    – Chris Woo
    May 10, 2017 at 20:57
  • @RiggsFolly tried
    – Chris Woo
    May 10, 2017 at 20:57

1 Answer 1

1

it means there is no password generated in your log file, so just press enter without any password

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.