DEV Community

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

prhomhyse profile image
Promise Akpan • Edited on

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