Установив MySQL 8 и как обычно запустив после установки sudo mysql_secure_installation получаем в консоли ошибку
Estimated strength of the password: 100 Do you wish to continue with the password provided?(Press y|Y for Yes, any other key for No) : y ... Failed! Error: SET PASSWORD has no significance for user 'root'@'localhost' as the authentication method used doesn't store authentication data in the MySQ L server. Please consider using ALTER USER instead if you want to change authentication parameters.
Лечится это следующим образом
sudo mysql
и затем, не забывая, про точку с запятой в конце
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password by 'mynewpassword';
Далее опять запускаем
sudo mysql_secure_installation
и вводим установленный до этого ‘mynewpassword’