0

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

  • 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
0

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.

| improve this answer | |
0

MySQL server isn't running. Run

sudo /etc/init.d/mysql start
| 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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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