Welcome to Pandora FMS Community!

Find answers, ask questions, and connect with our community around the world.

Bienvenido a la comunidad de Pandora FMS Forums Community support MySQL ERROR: Can’t connect to local MySQL server through soc

  • MySQL ERROR: Can’t connect to local MySQL server through soc

    Posted by kram on septiembre 28, 2007 at 17:47

    Hi,
    I have installed Pandora FMS 1.2 in my linux machine. But, when I try to view it through my web browser. I get this error:

    Warning: mysql_pconnect() [function.mysql-pconnect]: Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2) in /usr/local/apache2/htdocs/pandora_console/include/config.php on line 42

    Pandora Console Error DB-001
    Cannot connect with Database, please check your database setup in the ./include/config.php file and read documentation.

    Probably any of your user/database/hostname values are incorrect or database is not running.

    MySQL ERROR: Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2)

    Through the command prompt, I can succesfully connect to mysql in the linux box using the same credentials defined inside the config.php files. Can you please tell me what could be going wrong here? Any tips to trobleshoot this problem?

    Thanks in advance!

    raul replied 17 years, 5 months ago 2 Members · 1 Reply
  • 1 Reply