Erich Stoekl
04/07/2020, 10:19 PMDG
04/07/2020, 10:22 PM$ mysql -u root -p
When prompted enter in the temporary password from /var/log/mysqld.log
Change root password, in this case we will use toor?Fl33t
as default password validation requires a more complex password.
For MySQL 5.7.6 and newer, use the following command:
mysql> ALTER USER "root"@"localhost" IDENTIFIED BY "toor?Fl33t";
For MySQL 5.7.5 and older, use:
mysql> SET PASSWORD FOR "root"@"localhost" = PASSWORD("toor?Fl33t");
Now issue the command
mysql> flush privileges;