Creating Admin account failed

Hi Folks,

I have nextcloud installed at Finally i´m asked to create a Admin account. But nextcloud is trying to login at the database as user but the databaseuser is Where can i find the file to change the adress.

Thanks for any help



Maybe that can help.

Pleace check the Folder nextcloud/config and edit the file > config.php

change: -> // for comment
//‘dbname’ => 'nextcloud_old_dbname‘,
‘dbname’ => 'nextcloud_new_dbname‘,

//‘dbhost’ => ‘nextcloud_old_dbhost’,
‘dbhost’ => ‘nextcloud_new_dbhost’’,

and try again

Hallo ham,

thank´s for your quick replay.
Unfortunately my config.php looks like this and there is no link to “

<?php $CONFIG = array ( 'instanceid' => 'xxxxxxxxxxxxxxxx', 'passwordsalt' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', 'secret' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', 'trusted_domains' => array ( 0 => '', ), 'datadirectory' => '/mnt/xxxxxxxxxxxxxxxxxx/htdocs/nextcloud/nextcloud/data', 'overwrite.cli.url' => '', 'dbtype' => 'mysql', 'version' => '', 'dbname' => 'DB1234567', 'dbhost' => '', 'dbport' => '', 'dbtableprefix' => 'oc_', );

The complete error message while trying to create admin user is:

Error while trying to create admin user:
Failed to connect to the database: An
exeption occured in driver:
SQLSTATE[280001045] Access denied for user
(using password:YES)

but my DB-user has to be <<<— This is on strato the correct user

Databseserver on strato:

  • Server: rdbms via TCP/IP
  • Server-Typ: MySQL
  • Server Version: 5.6.35-log - Source distribution
  • Protokoll-Version: 10
  • Benutzer:
  • Server Zeichensatz: UTF-8 Unicode (utf8)

Thanks for any help


try that.

‘dbname’ => ‘DB1234567’,
‘dbhost’ => ‘’,
‘dbtableprefix’ => ‘oc_’,
‘dbuser’ => ‘U1234567’,
‘dbpassword’ => ‘xyz_password_something’,

without -> dbport

check your access premission: user@localhost or user@ or -> all string after @ should be your server.

very important: if you have done an update from eg. owncloud, you have to copie the config file and modify because the salt, secret and isntanceid should be de same

Hi ham,

I got it.
The only thing what was missed.

The string “dbuser’ => ‘U1234567’” Was not set automatically in the config.php
After i have done this it works.

Thanks for your help

Have a nice day