Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

1.3K
Views
Is it possible to connect an existing database with Strapi CMS?

I am trying to create an API using Strapi CMS. I have an existing postgres + postgis database and i would like to connect-use this database in a Strapi project.

Do you know if it is possible to do something like this? Thank you in advance

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

I was looking for an answer for this also, but it seems the only answer is no, because Strapi is not schema-agnostic: you must adopt their database structure to use Strapi.

Now if I could only figure out a way to ask Stack Overflow for a schema-agnostic headless CMS ... without getting it flagged as an invalid/subjective question ...

over 4 years ago · Santiago Trujillo Report

0

You can do it while you create a strapi app just choose custom and setup the database there. and to import existing tables from that db just create a mock table using strapi admin panel and in /api folder in your project root folder and copy paste the table data you just created in api folder and chage the name of that folder to the table name and do same for the files in side that folder and,

in the api>(your table folder)>config>routes.json file change the name of table inside I will add a link to help you better understand.

for setup in strapi with existing database> configure-strapi-postgresql

I couldn't find the tut for setting up exist but this is for mysql setps are smilers.

strapi with sql

over 4 years ago · Santiago Trujillo Report

0

The best way is to create a new database with the same structure but created with strapi and after migrate the data.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!