Iâm trying to install NextCloud 15 on VM with Debian 9. And I use database MariaDB 10.1 on another Debian 9 host. I run command âsudo -u www-data php occ maintenance:install -vvv --database âmysqlâ --database-host âDBhostnameâ --database-name ânextcloudâ --database-user ârootâ --database-pass ârootpassâ --database-table-prefix ââ --admin-user âadminâ --admin-pass âpasswordâ --data-dir âPathToDataDirââ and get error message âError while trying to create admin user: Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [2006] MySQL server has gone awayâ. The command creates database ânextcloudâ with no tables and users âoc_admin@localhostâ and âoc_admin@%â. User âoc_admin@localhostâ has no permission to any database, user âoc_admin@%â has all permissions to db ânextcloudâ. Moreover I can perform command âmysql -h DBhostname -u oc_admin -p nextcloudâ - it allows to connect to the db. So connection to the db works fine. DB settings: wait_timeout=600 max_allowed_packet=128M and all from db setting manual. The command âocc maintenance:install âŚâ does not produce any log record despite of the fact that I write option â-vvvâ.
How can I trace the error origin? How can I get more information about the issue?
It looks like that it happens when " $dbSetup->runMigrations();" is performing (https://github.com/nextcloud/server/blob/master/lib/private/Setup.php line 350)