Although we will be working from the Database Manager when dealing with the database in QGIS, we will first need to connect to the database through the normal "Add Layer" dialog. Perform the following steps:
Navigate to Layer | Add Layer | Add PostGIS Layers.
Click on New.
In the Create a New PostGIS connection dialog, enter the following parameters, accepting others as their defaults:
Username/password: As configured earlier in this chapter
Click on Test Connect to make sure you've entered the correct information.