The error message is telling you that Plogger is unable to connect to the database. You need to check the database information in your plog-config.php file and make sure that it is correct.
Is this a new install or an existing gallery that has worked before?