Error message (error while trying to create admin user: failed to connect to the database: an exception occurred in the driver: sqlstate [hy000] [1045] access denied for user 'nextcloud'@'172.21.0.5')

Hello
I performed a nextcloud installation with SSL certificate on centos 7 with docker. I used the docker-compose from the official site (https://github.com/nextcloud/docker/blob/master/.examples/docker-compose/with-nginx-proxy/mariadb/fpm/docker-compose. yml)

but when I access the nexttcloud interface from my browser, and I fill in the connection information, I have the error message (error while trying to create admin user: failed to connect to the database: an exception occurred in the driver: sqlstate [hy000] [1045] access denied for user ‘nextcloud’@‘172.21.0.5’)
I have attached the captures of the docker compose used and the error messages received.

I ask for your help please





hello
Always waiting for your help please

did you remove the mysql password from your screenshots or did you leave the variable empty in your docker compose file?

btw: you can set more variables so you can skip the initial setup in the web gui.

I left the variable empty in the docker-compose

could you try again with a password?

Hello
I tried again inserting the password. but always the same message

did you delete the old database?
I’m not sure if the password will be changed if you change it in the docker-compose file.

yes I deleted the docker volumes after setting the password before restarting the containers so that it creates new volumes with the new configuration

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.