Young
Young

Reputation: 99

Cannot find the password of root in the fresh mysql install 5.7.20 on Redhat

I see there are several similar questions asked already, but I am not able to find the answer. So please help.

I installed mysql 5.7 on Redhat EL7. I followed the instructions in the manual,

   sudo yum localinstall mysql57-community-release-el7-11.noarch.rpm

   sudo yum install mysql-community-server

All went fine, except that I can't find the temporary root password. I read that the temp password is in /var/log/mysqld.log, but the file is empty.

Any help? Thanks

Upvotes: 0

Views: 61

Answers (2)

Sudhakar P
Sudhakar P

Reputation: 41

try without any password. simply hit enter and further you can set password.

Upvotes: 1

FuriousHelicopter
FuriousHelicopter

Reputation: 93

I post this as an answer b/c i have less than 50 but have you tried "toor" it is often the default password of root. Also, in the official mysqld repository like the one on apt, you set the password during the setup... So, check these two solutions. If it is not that good luck to find your answer :)

Upvotes: 0

Related Questions