Start Strapi with new DB

System Information
  • Strapi Version: 4
  • Operating System: linux
  • Database: postgres
  • Node Version:
  • NPM Version:
  • Yarn Version:

Hello, ive just setup a Strapi on my local Mac with Postgres. all is okay in dev/prod modes.

The next step - I trying to push my Strapi code to the server and connect to new database. So I make Postgres sql dump - then import one into server’s db. Import shows no errors and db looks fine.

When I starting Strapi I get errors:

[2022-07-17 23:28:25.288] debug: ⛔️ Server wasn't able to start properly.
[2022-07-17 23:28:25.290] error: create table "strapi_database_schema" ("id" serial primary key, "schema" json, "time" timestamp, "hash" varchar(255)) - relation "strapi_database_schema" already exists

on every table. May be problem with dump or/and import process?

How did you make the database export ? What psql command etc did you use ?