Can't connect to database

Tried to install next cloud, but cannot connect to database I get this error message "Error while trying to create admin user: Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [1045] " I have created a database and I have entered “user” details etc but just cannot get it installed. Any Ideas ???

Did you follow this guide:
can you connect to the database on the command line or via phpMyAdmin?

Thanks, solved it. I looked at the database further after your thoughts. I created another “data base user” in cpanel mysql and used the credentials to install it and finally get it up and running. Thanks again for taking the time to offer advice…