티스토리 뷰

728x90
docker run -d -p 5432:5432\
	--name postgres\
    -e POSTGRES_PASSWORD={비밀번호}
    postgres

이렇게 해서 datagrip에 postgres를 연결하려고 했더니 안됨

postgres는 기본으로 root 계정이 postgres 이어서 datagrip에 연결했더니 아래와 같은 오류가 났음

The specified database user/password combination is rejected: [28P01] FATAL: password authentication failed for user "postgres"  

그래서 계정 하나 만들고 연결하니까 잘되었음..

docker exec -it postgres bash

postgres=# create user postgres password 'fhEh1emd!!' superuser;

postgres=# \du

도움

https://hub.docker.com/_/postgres

 

Postgres - Official Image | Docker Hub

We and third parties use cookies or similar technologies ("Cookies") as described below to collect and process personal data, such as your IP address or browser information. You can learn more about how this site uses Cookies by reading our privacy policy

hub.docker.com

 

728x90
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함