apt-get install phpmyadmin and ran into an error saying it cannot connect to mysql (socket issue). It was normal because I forget to install mysql before, so I selected "abort" above all options given by phpmyadmin.
sudo tasksel and installed
Once finished, I ran :
apt-get remove --purge phpmyadmin apt-get install phpmyadmin
mysql -u root -p but I got the following error:
Access denied for the following user 'root'@'localhost'
So I solved this problem by doing :
mysql SET PASSWORD FOR root@localhost=PASSWORD('mypassword'); GRANT ALL PRIVILEGES ON *.* TO root@localhost IDENTIFIED BY 'mypassword' WITH GRANT OPTION;
Then I successfully logged in localhost/phpmyadmin, but found this message :
The phpMyAdmin configuration storage is not completely configured, some extended features have been deactivated. To find out why click here.
I clicked here, and it showed me :
Can I go on peacefully with mysql/phpmyadmin?