Pandora FMS Community

MySQL ERROR: Can't connect to local MySQL server through soc

kram · 28 sept 2007, 17:47 · 2 mensajes · 56 visitas

  1. Inicio del debate

    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!

  2. Read (Link not available anymore) You have to install the php5-mysql package and restart apache: [code:1]apt-get install php5-mysql apache2ctl stop apache2ctl start

Entra en tu cuenta para publicar.