the error is saying that the either the database username or password you are using is not correct.
double check the username and password you are entering for the database connection to make sure it is correct for the server you are installing the gallery to.
If you perform the installation on one server, then copy the files to another server, it will not have the correct connection information in the connection file.