Error installing phpmyadmin - can't access mysql now

March 9, 2015 653 views

I tried installing phpmyadmin and I got the below error.

When I try to access mysql via mysql -u root -p and use root password, I get this error:

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

I've tried a lot of different solutions and nothing is working. Anyone have a fix for this?

1 comment
  • Is the MySql process currently running? What's the output of sudo service mysql status

Be the first one to answer this question.