1. Home
  2. Knowledge Base
  3. Problems (EN)
  4. Database error when starting the service pandora_server

Database error when starting the service pandora_server

It is possible that when attempting to start the service pandora_server you will find this error in the log. With verbosity 10 you can get this:

DBI connect('pandora:localhost:3306','pandora',...) failed: Can't
connect to local MySQL server through socket '/tmp/mysql.sock' (2) at
/PandoraFMS/DB.pm line 108.

With verbosity 1 or 0 you get this other error:

DBI connect('pandora:localhost:3306','pandora',...) failed: Access denied
for user 'pandora'@'localhost' (using password: YES) at
/PandoraFMS/DB.pm line 113.

In both cases you first need to check if the password is correct. If that is correct it should work. If not, check the MySQL .sock that exists on this path ( /tmp/mysql.sock ). If that succeeds, link the current MySQL .sock to /tmp/mysql.sock, using:

ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock

And try again. Also, it can help to change in pandora_server.conf the dbhost parameter using the IP address 127.0.0.1 instead of localhost. If the path is correct, we must review the login credentials again and see if the MySQL service is running.

Was this article helpful?

Related Articles

Need Support?

Can't find the answer you're looking for?
Contact Support