If you just finished the installation, it may take some seconds for the database to be available. Should the error persist check the logs for more information.