Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have quite a few errors when trying to make a website with LAMP.

Error #1: mysql: (I have no idea what's causing it.) mysqld.sock is missing.

When I type in


it will say it can't connect to socket. I look all over my laptop's files and I can't find it anywhere.

Error #2.a: phpmyadmin: #2002 Cannot log in to the MySQL server When I try to log into PHPmyadmin this error will show up. Anything I do, this message will appear up all the time

Error #2.b: phpmyadmin: Connection for controluser as defined in your configuration failed.

I put in "root" for my user and this shows up. I wasn't able to choose my user while installing, only my password.

Error #2.c: phpmyadmin: phpMyAdmin was unable to read your configuration file! This might happen if PHP finds a parse error in it or PHP cannot find the file. Please call the configuration file directly using the link below and read the PHP error message(s) that you receive. In most cases a quote or a semicolon is missing somewhere. If you receive a blank page, everything is fine.


I hadn't have edited my config.inc.php file, except when i changed "localhost" to "" and I put "root" in the ControlUser.

Can someone help?? I went on at least 30 pages on google to help me with this. None of them worked. I am a big noob, so bear with me.

share|improve this question
mysqld.sock is created when your mysql server is started. Try sudo /etc/init.d/mysql start. If the file is missing, it means your mysql server isn't running (or not at all installed). –  Jakke Jun 14 '14 at 0:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.