problem 2 is related to problem 1.
problem 1 means that there is a problem with the connection details. double the mysql host, username, password and database name to make sure they are correct.
the error indicates they are not. if you think they should be and are still getting the error, check with the host.