B
B
BonBon Slick2017-09-05 11:38:34
phpstorm
BonBon Slick, 2017-09-05 11:38:34

PhPStorm + Homestead connection to PostgreSQL DB?

Through ssh it turns out to connect to the database:
psql -U homestead -h localhost my_db_name

But through the manager, the panel on the right, I create a new connection:

Host: 127.0.0.1
Database: my_db_name
User: homestead
Secret: secret
URL: jdbc:postgresql://127.0.0.1:5432/postgres


I'm testing the connection, it says Failed , why?
Log:
Connection to [email protected] failed.
[08001] Connection to 127.0.0.1:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.


I also tried to create a new connection via SSH/Sl using the configs:
192.168.10.10
vagrant
Key Pair(Open SSH)
C:\Users\userName\.ssh\id_rsa

Guide" https://hansott.github.io/post/add-homestead-mysql...

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question