As I was following the tutorial on installing a LAMP server I got to this command:
sudo mysql_secure_installation
and when prompted for a New password it returns this error message:
New password:
Re-enter new password: … 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.
Any ideas out there?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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.
Sign up for Infrastructure as a Newsletter.
Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Hey @jrmurchin,
That’s easily resolvable, don’t worry.
Replace
SetRootPasswordHere
with your actual password. 5. Then run the following command to secure it:Hi there,
You should be able to resolve this by following these steps:
Start a new MySQL session:
Run the following SQL query:
Then run the
mysql_secure_installation
command again:When needed enter the
your-password-here
Let me know how it goes!
Best,
Bobby