MySQL Forums
Forum List  »  Security

Re: New Installation and root cannot login with or without password
Posted by: Georgi Kodinov
Date: February 20, 2017 08:39AM

Hmm, --init-file is a mysqld option. So it should work in all 5.7 binaries.
But judging from you saying that "there's no mysqld_safe" this must mean mysqld_safe (and mysqld) are not in your PATH.
Are you sure you're running the server as the "mysql" user ? The docs mention that you should. If that's not the case then it's up to you to set your PATH correctly (or use the full path to mysqld_safe).

But IMHO this is not strictly speaking necessary for a new installation.

https://dev.mysql.com/doc/refman/5.7/en/linux-installation-rpm.html says that you can find the auto-generated password by doing :

sudo grep 'temporary password' /var/log/mysqld.log

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: New Installation and root cannot login with or without password
913
February 20, 2017 08:39AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.