Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

Discussion in 'Installation/Configuration' started by abintipl, Dec 1, 2011.

  1. abintipl

    abintipl New Member

    Dear Sir,

    I have Debian with ISPCOnfig latest version running

    I did

    Optimize MySQL performance with mysqltuner

    as per instructions on

    http://www.faqforge.com/category/linux/server/mysql-server-linux/

    After that, I am not able to get to my ISpconfig control panel & getting an Error

    Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /usr/local/ispconfig/interface/lib/classes/db_mysql.inc.php on line 76

    Also if I browse my website, get an Error "Error establishing a database connection"

    I really don't know, what went wrong

    Please help

    Thanks

    Abin
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    mysql seems to be down. Please restart mysql and check for errors in the syslog.
     
  3. abintipl

    abintipl New Member

    Thanks

    Dear Sir,

    Thank you for your help and continuous support.

    My Server is working now

    regards,

    Abin
     

Share This Page