Error occurred while it was installing on my server.Here is the info:
Error while trying to create admin user: An exception occurred while executing ‘SELECT
app = ? ORDER BY
version ASC’ with params [“core”]: SQLSTATE[HY093]: Invalid parameter number: no parameters were bound
I am sure I’ve create a correct database ,user and granted all privileges on this database to the user.So how to do ?(THE env for my host is based on Apache2 with PHP7.3 and mysql5.7)
you can try the following:
Go to your config.php and recreate it. You will find it in your Nextcloud folder under /config.
Now try to initiate the cloud from command line. For this change directory to Nextcloud folder and run:
sudo -u www-data php occ maintenance:install --database "mysql" --database-name "nextcloud" --database-user "root" --database-pass "rootpassword" --admin-user "admin" --admin-pass "adminpassword" --data-dir "/path/to/nextcloud/data"
Note: adapt the command according to your needs.