This is my first time trying to install Nextcloud. Everything worked so far (O. K., after some rework). Now I am stuck at the first screen in the browser where the NC config asks for data to create NC admin user and to set up the database and database user.
I am getting two different error messages between numerous attempts:
“Error while trying to create admin user: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000]  Access denied for user ‘nextclouduser@localhost’@‘localhost’ (using password: YES)”; I also got the message with only user “‘nextclouduser@localhost’”
“MySQL-Benutzername und/oder Passwort ungültig Du musst Details von einem existierenden Benutzer einfügen.” (roughly translates as “MySQL user name and/or password invalid. You must insert credentials of an existing user.”
I am entering the credentials of a user that I have previously set up in MariaDB. I can log into database administration with those credentials (mysql -u nextclouduser -p). So wrong credentials should not be an issue. The user also has full privileges on the database (nextcloud_db) that I have already created.
I have also tried with out pre-creating the database or using the DB root user. That didn’t work either.
I have removed all special characters from the database user’s password (found that tip in the NC forum), but that didn’t help.
Also found the tip to install phpMyAdmin to check the database, but didn’t do as I cannot see the benefit.
Has anybody got any ideas what to do/try - before going for a complete reinstall?
And as always: yes, I’ve searched both the forums and the Internet extensively before posting, found lots tips, but nothing that helped.
Matter of fact I did. I didn’t (don’t?) expect that to make much of a difference. I guess I may be wrong. Edit: Looking at the tutorial webpage, it has a version for Debian 10, too. I might have used that. Did that a few weeks back and have been trouble-shooting the issue off and on since then, so unfortunately not quite sure.
Can do. Will add that soon. If anyone’s got another idea in the meantime, that’d be greatly appreciated.
Your post is missing a lot of specific technical information. Thanks for your post, but please take a little time to get acquainted with the forum and make a stronger effort to troubleshoot. It is the least you can do when asking others to help you:
Search your question as keywords on this forum. If you find something useful, link it directly into this post.