Tag Archives: MySQL

Cannot connect to mysql after installation

If you have installed MySQL and you cannot to it after installation, you may try the following:

sudo mysql -u root

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';

Replace the password with the one you want.

 

References:

https://askubuntu.com/questions/766334/cant-login-as-mysql-user-root-from-normal-user-account-in-ubuntu-16-04

Advertisements