Error occurred while installing NextCloud

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 version FROM oc_migrations WHERE 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)

Hej hej

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.

Kind regards
//neph

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.