Installation Wizard not accepting username and password

Hello

I am trying to install Nextcloud on Centos. The problem is Installation wizard is not picking mysql information what I had entered in the form. Here is the information what I had provided in mariadb/mysql section.

username = myncuser
passsword = mydbpassword
db_name = ncdb
db_host = 10.0.201.120

But when I clicked on Finish setup button then a error appears.

Error while trying to create admin user: Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [1044] Access denied for user ‘oc_admin15’@’%’ to database ‘client1’

Don’t know why it is mentioned mysql username as ‘oc_admin15’ but I had entered ‘myncuser’. I checked the config.php file there I saw this.

‘dbtype’ =>; ‘mysql’,
‘version’ =>; ‘13.0.5.2’,
‘dbname’ =>; ‘ncdb’,
‘dbhost’ =>; ‘10.0.201.120’,
‘dbport’ =>; ‘’,
‘dbtableprefix’ =>; ‘’,
‘mysql.utf8mb4’ =>; true,
‘dbuser’ =>; ‘oc_admin15’,
‘dbpassword’ =>; ‘Q9hwc3uqbzqU2G9E+TkJt6XWGqmGjE’,

If you see the wizard generated random password and also the dbuser oc_admin15 in config.php. But I had mentioned different.

Would you please any body help me.

few ideas:

  • does your actual db user have all the rights on your nextcloud db ?

  • files acces right user/group

    root@nextcloud:/var/lib/mysql# ls -la
    total 176208
    drwxr-xr-x 6 mysql mysql 4096 août 8 04:15 .
    drwxr-xr-x 48 root root 4096 août 9 19:09 …
    -rw-rw---- 1 mysql mysql 16384 août 8 04:14 aria_log.00000001
    -rw-rw---- 1 mysql mysql 52 août 8 04:14 aria_log_control
    -rw-r–r-- 1 root root 0 juin 1 17:54 debian-10.1.flag
    -rw-rw---- 1 mysql mysql 79691776 août 14 23:35 ibdata1
    -rw-rw---- 1 mysql mysql 50331648 août 14 23:35 ib_logfile0
    -rw-rw---- 1 mysql mysql 50331648 août 14 23:35 ib_logfile1
    -rw-rw---- 1 mysql mysql 0 juin 1 17:55 multi-master.info
    drwx------ 2 mysql root 4096 juin 1 17:55 mysql
    drwx------ 2 mysql mysql 12288 août 8 00:39 nextcloudDB
    drwx------ 2 mysql mysql 4096 juin 1 17:54 performance_schema
    drwx------ 2 mysql mysql 4096 juin 1 17:56 phpmyadmin

Yes there is no issue with the user, If I manually edit the config.php file and put my username and password there then the First installation wizard have no issue.

I am pretty sure the issue with this Installation Wizard