Can't connect to database


#1

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 ???


#2

Did you follow this guide:
https://docs.nextcloud.com/server/14/admin_manual/configuration_database/linux_database_configuration.html
can you connect to the database on the command line or via phpMyAdmin?


#3

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…