In your wp-config.php file , name and password of your wordpress data are stored. This should match with the name and password of your database on the server.
You can get the site back by uploading files to server and setting the right database password.