MySQL Error: : ‘Access denied for user ‘root’@’localhost’

To fix MySQL Error: : ‘Access denied for user ‘root’@’localhost’, you should follow these steps: Step 1: Open and Edit /etc/my.cnf or /etc/mysql/my.cnf, according to your distro. Step 2: Add skip-grant-tables which is under [mysqld] Step 3: Now, Restart Mysql You must be able to login to mysql now by using the below command mysql…