리눅스 PostgreSQL 클라이언트 psql

Jmnote (토론 | 기여)님의 2015년 9월 22일 (화) 10:46 판 (→‎개요)

1 개요

리눅스 psql
/usr/bin/psql
  • PostgreSQL 터미널
[root@zetawiki ~]# psql
psql: could not connect to server: No such file or directory
	Is the server running locally and accepting
	connections on Unix domain socket "/tmp/.s.PGSQL.5432"?

2 원격 서버 접속

psql -h 서버주소 -U 아이디 데이터베이스명
[root@zetawiki ~]# psql -h 135.79.246.80 -U testuser mydb
Password for user testuser:
psql (8.4.20, server 9.1.1)
WARNING: psql version 8.4, server version 9.1.
         Some psql features might not work.
Type "help" for help.
mydb=>
mydb=> \q
[root@zetawiki ~]#

3 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}