the error message "Access denied for user 'root'@'localhost'" means that the password you have entered is not being accepted by the MySQL server.
You may or may not have to change the host variable, you should contact your host to get the values that are needed to connect to their mysql server. They will be able to tell you the correct values to use in the connection file.