5

I just install Strapi but with PostgreQL DB (not using -- quickstart which means SQLite)

1. yarn create strap'-app name-of-my-project,

2. submit all QA=default step-by-step (database=strapi, port=default, login/password nothing fancy, and last without SSL connection)

And the finall result is not so descriptive. Only server error with connecting, which I don't know

Connection test failed: connect ECONNREFUSED 127.0.0.1:5433

Problem solved! (after 2 hours of trying instalation)

The answer is => You have to install PostgreSQL DB too on your computer

Once its done, next, you can run Strapi by yarn develop

So the problem is solved. Other problem in meantime solved

`Server wasn't able to start properly. Error: The server does not support SSL connections. Try to install without SSL connection (last question in Strapi install process)

4
  • When you say that we have to install PostgreSQL DB locally, do you mean that we also have to create the database and its user ? Commented Jul 21, 2022 at 10:53
  • Yes, it is, you do Commented Aug 10, 2022 at 22:53
  • @sleepydrmike is there a tutorial or documentation on how to do that? Commented Feb 15, 2024 at 13:44
  • @conor909 I didn't do it his way finally, since usually you first create you project locally and then worry about deployment. Here is a very descriptive tutorial on how to deploy your local Strapi backend to a VPS: medium.com/@leodeo/…. If you start with a blank server without anything installed, you'll need to install Postgres on your VPS (along with node and family), create a DB and then use env variables to use the postgres client in production and your local one in dev mode. Commented Feb 16, 2024 at 2:04

3 Answers 3

1

Instead of downloading postgres you can apply docker and it works the same

Link: https://blog.dehlin.dev/docker-with-strapi-v4

Sign up to request clarification or add additional context in comments.

1 Comment

As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.
0

I know you resolved the issue but just posting this in case anybody needs specific instructions.

I followed this tutorial and it's working for me now.

Sidenote: Once I installed Postgres and ran the command psql postgres it prompted me to enter my password. Despite putting in the correct password it still gave me an error that it is the wrong password, so I ran psql postgres postgres and then entering my password resolved the issue for me.

Comments

0

I had the same problem and as Kris says above, you need to install postgresql, pgAdmin and create the database first to then can create your Strapi project linked to you database.

I followed this youtube tutorial (in spanish) to solve it very easy.

Also need to avoid enable SSL for your local project. If you need to change this option in the future you can make it in the strapi config/database.js file.

Good luck!

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.