You need to use the correct username and password to logon to your database.
If you have not created a useraccount IN the database, you will have to do this before you can connect to it.
Check the MySQL manual, look for the GRANT functions.
You may need root access, so study that part of the MySQL manual.