You should first setup lamp click here to know lamp then enter command "sudo apt-get install phpmyadmin" to setup phpmyadmin to control mysql. Because its setup way is /usr/share by default, you should take command "ln -s /usr/share/phpmyadmin /var/www/". Its user name and password should be the same as mysql.( it can modify in file /var/www/phpmyadmin/libraries/config.default.php, 183 lines, user name is root by default, password you can modify ). You may also see here for more.more information **
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'** up error you can do following: sudo /etc/init.d/mysql restart。