I'm trying to install a LAMP stack on Ubuntu through crouton on a Chromebook (Acer c720p).
I was able to install the following packages
apache2 mysql-client mysql-server php5 libapache2-mod-php5
and the localhost folder works correctly. When I try to install phpmyadmin I get the following error:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'
The only way to exit from the sudo apt-get installation is to ignore the error. Then, if I go to localhost/phpmyadmin, phpmyadmin looks to work, but I cannot log in and I get
#2002 Cannot log in to the MySQL server
Connection for controluser as defined in your configuration failed.
How do I configure MySQL so that phpmyadmin is able to connect to it?
Asked by Sfrow
(111 rep)
Mar 28, 2015, 07:48 PM
Last activity: Nov 8, 2022, 06:01 PM
Last activity: Nov 8, 2022, 06:01 PM