Welcome to Pandora FMS Community!

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

Welcome to Pandora FMS Community Forums Community support Can’t connect to local MySQL server through socket ‘/tmp/mys

  • Can’t connect to local MySQL server through socket ‘/tmp/mys

    Posted by kram on September 28, 2007 at 20:35

    Hi, I am guessing this forum is the latest and hence more active than the FMS 1.2 forum. My apologies if I was not supposed to post this here.

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

    Member
    September 29, 2007 at 19:00
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Answered in http://www.openideas.info/phpbb/viewtopic.php?p=2046#2046

    Hi, I am guessing this forum is the latest and hence more active than the FMS 1.2 forum. My apologies if I was not supposed to post this here.

    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!