This is not due to the powergallery installation. It looks like your configuration is corrupted and doesn't have a valid username and password. It is possible that you removed the default user for the database and will have to re-configure it. This would not have happened in the powergallery installation.