Check whether you have created a database and a user in the control panel. Without them, you will not be able to connect to the database. The host (server) for the database is always localhost.