Hi,
When I try to setup a root password for the MySQL server following this guide (https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-20-04) I always get the following error message: … Failed! Error: SET PASSWORD has no significance for user ‘root’@‘localhost’ as the authentication method used doesn’t store authentication data in the MySQL server. Please consider using ALTER USER instead if you want to change authentication parameters. So I can´t proceed with the installation. Does anybody know how I can solve this problem?
Best regards heusmich
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hi @heusmich,
You need to change the authentication parameters, to do so just run this command first.
Then run This ALTER Query to change the authentication parameters.
And now, you are able to run mysql_secure_installation command.
Hope that solve your issue,
Sergio Turpín