How to reinstall Nextcloud

Step by step:

  1. move /srv/www/nextcloud/data/admin folder to the backup location
  2. move /srv/www/nextcloud/config/config.php to the backup location
  3. login to the mysql as a root user “mysql -u root”
  4. apply commands:
    DROP DATABASE nextcloud;
    DROP USER ‘nextcloud’@‘localhost’;
    DROP USER ‘nextcloud’@‘127.0.0.1’;
  5. run the script “nextcloud_install” and follow instruction