Nextcloud version (eg, 12.0.2): 13
Operating system and version (eg, Ubuntu 17.04): Ubuntu 18.04 / OVH host in France
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.29
PHP version (eg, 7.1): 7.2
mysql: 5.7.22-0ubuntu18.04.1
The issue you are facing:
the install page doesnt connect to mysql database.
i created the DB and an user specifically for nextcloud, and flushed the rights. but there is the error shown after submit of the form:
Error
Error while trying to create admin user: Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [1045] Access denied for user ’ oc_super_admin_t’@‘localhost’ (using password: YES)
Security warningYour data directory and files are probably accessible from the internet because the .htaccess file does not work.
For information how to properly configure your server, please see the documentation.
“oc_super_admin_t” is not the user to connect to mysql i created and entered in the install form. that is very weird.
Is this the first time you’ve seen this error? (Y/N): N
i already face that in fresh ubuntu installs before
Steps to replicate it:
- fresh ubuntu 18 server, getting lamp-server, php7 modules, make a vhost, enable https with certbot, restart apache, unzip nextcloud in /var/www/html/nextcloud
- make config in mysql CLI, create database, and user with grant access to this DB.
- fill the form accessed from the vhost in https, with strong passwords (i use lastpass)
- submit
The output of your Nextcloud log in Admin > Logging:
(cannot access this right now, will upload it when i could)
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
(cannot access this right now)
The output of your Apache/nginx/system log in /var/log/____
:
(cannot access this right now)