Ubuntu phpmyadmin connect to mysql error: #2002 cannot log in to the mysql server

If phpmyadmin cannot connect to mysql error: #2002 cannot log in to the mysql server
Run:
sudo nano /etc/mysql/my.cnf

Update

bind-address = 192.168.0.2

To

bind-address = localhost

This fixed the problem. Enjoy.

ref: here

By Keenlio, August 22, 2014

What do you think?

Leave a Reply

Your email address will not be published. Required fields are marked *


+ five = 8

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>