Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

in order to be able to use a jquery plugin to upload files i had to increase some variables from php.ini, so i had to reboot, I used the webmin option to reboot system, now it seems that the connection to mysql fails

This is the error

Warning: mysql_connect(): [2002] No such file or directory (trying to connect via unix:///var/run/mysqld/mysqld.sock) in /var/www/integracion/includes/basedatos.php on line 10 Warning: mysql_connect(): No such file or directory in /var/www/integracion/includes/basedatos.php on line 10 No such file or directory

any clue would be very helpfull

share|improve this question

migrated from Jun 8 '12 at 1:09

This question came from our site for professional and enthusiast programmers.

So have you started mysql??? – xdazz Jun 7 '12 at 2:42
it looks like started in webmin procesess – Toni Michel Caubet Jun 7 '12 at 2:43
up vote 0 down vote accepted

You can use ss command to see whether mysql already run or not.

ss -anlp

If mysql is not running, use

mysqld_safe &

If it alse can't connect to mysql by doing this, Check the /etc/my.cnf.

share|improve this answer

MySQL server isn't running. Run

sudo /etc/init.d/mysql start
share|improve this answer
7953401631:~# sudo /etc/init.d/mysql start -bash: sudo: command not found 7953401631:~# – Toni Michel Caubet Jun 7 '12 at 2:46

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.