service mysql stop
mysqld_safe --skip-grant-tables &
systemctl stop mysqld
systemctl set-environment MYSQLD_OPTS="--skip-grant-tables"
systemctl start mysqld
mysql -u root
UPDATE mysql.user SET authentication_string = PASSWORD('MyNewPassword') WHERE User = 'root';
FLUSH PRIVILEGES;