DEV Community

loading...

Discussion on: Tutorial – After Installing MySQL on Ubutnu 18.04, Fix “Access denied for user ‘root’@’localhost'” Error

Collapse
prhomhyse profile image
Promise Akpan • Edited

Hi Joshua,
Great stuff. Here is another work around.

Try this:
sudo mysql_secure_installation

Follow the prompt and you can change the root password.

P.S: Ubuntu 18.04 LTS