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

2
  • 1
    So have you started mysql???
    – xdazz
    Jun 7, 2012 at 2:42
  • it looks like started in webmin procesess Jun 7, 2012 at 2:43

2 Answers 2

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.

0

MySQL server isn't running. Run

sudo /etc/init.d/mysql start
1
  • 7953401631:~# sudo /etc/init.d/mysql start -bash: sudo: command not found 7953401631:~# Jun 7, 2012 at 2:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .