Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
1  
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
add comment

migrated from stackoverflow.com Jun 8 '12 at 1:09

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

2 Answers

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
add comment

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
add comment

Your Answer

 
discard

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.