Please make sure that you are using "localhost" as the database hostname.
In addition, you will need to create the database and attach a user to it via cPanel. You should see a "MySQL Databases" icon there that you will need to click to create the database and the database user. See here for step-by-step instructions.