Log in to the MySQL Server

I’ve signed up with dreamhost recently and am trying to setup my website. I’ve managed to upload my files, created the sqlhost, database and sqluser. The last step remaining is to import the database.

But when i try to log into phpmyadmin, i am unable to login. I get the following error message:

Cannot log in to the MySQL Server
mysql_real_connect(): php_network_getaddresses: getaddrinfo failed: Name or service not known

mysqli_real_connect(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: Name or Service not known