Make sure that the connection string to the existing DB was copied properly:
For example With PostgreSQL:
url: "jdbc:postgresql://<DB_IP>:5432/artifactory"
Warning
Ensure that the new server has permission to access the existing DB. This may involve bypassing firewalls, updating allow lists, or making necessary configurations.