Connection for controluser as defined in your configuration failed - Ubuntu phpmyadmin Resolve?

By Hardik Savani | April 8, 2016 | Category : Ubuntu

When i was working on my PHP project since last 1 year on my current system and phpmyadmin was working very well. but one day i was working on my prjects and electricity off suddenly and when electricity on, i start my system again and open localhost/phpmyadmin, then i found following error:

Connection for controluser as defined in your configuration failed.

I did try lot to solve. i also reboot my ubuntu 14.04 system again but i found still that issue. i was very disappointed from this issue. But when i open my PHP Laravel framework project i found bellow issue:

can't connect to local mysql server through socket '/var/run/mysqld/mysqld.sock' (2) in ubuntu

when i found above error on my browser then thought it maybe need to restart mysql service and i run following command on my terminal.

sudo service mysql start

I solve this issue but try this it can help you...

Hardik Savani
My name is Hardik Savani. I'm a full-stack developer, entrepreneur and owner of Aatman Infotech. I live in India and I love to write tutorials and tips that can help to other artisan. I am a big fan of PHP, Javascript, JQuery, Laravel, Codeigniter, VueJS, AngularJS and Bootstrap from the early stage.
Follow Me: Github Twitter
***Do you want me hire for your Project Work? Then Contact US.