Can't connect database with existing account after database migration

When migrating instance or something else, you can’t connect old database with existing admin account.

image

Starting nextcloud installation
The Login is already being used
Retrying install...
The Login is already being used
Retrying install...
The Login is already being used
Retrying install...

seen this thread?

but i already have a admin account.
NC force me to create a new one again and again. then i should remove them.

best way for me is setup DB connection at config.php manualy, to skip this wizard.

The existing admin account is in your old database. It looks more like:

  • you’re using one of the Docker images (not sure which one since you didn’t specify)
  • you’re triggering the installer (which of course is not what you want)

Migrations require three things:

  • your config files
  • your database
  • your data directory contents

How, precisely, did you migrate?

It would also help you posted your Docker Compose file (both before and after if you changed them).

References:

[1] Migrating to the Docker image: GitHub - nextcloud/docker: ⛴ Docker image of Nextcloud
[2] Migrating to a different server: Migrating to a different server — Nextcloud latest Administration Manual latest documentation