Mysql 에서 사용되는 ',' 내가 사용하는 database_name
Postgresql 을 사용할 수 있습니다. ['\connect'] [1] 에서 클라이언트 도구에서는 메타 명령 파스크라.
\connect DBNAME
또는 파선-짧은:
\c DBNAME
[1]: https://www.postgresql.org/docs/current/app-psql.html # 파스크라 metalun 명령의세 app
사용하여 접속할 수 있습니다
\c dbname
예: '\c 미다타바제'
참고로, '\c \connect 메타 명령의세 [구분]' 와 '있다' (http://postgresql.nabble.com/Case-sensitive-connect-in-psql-is-perplexing-td1912216.html) .
아래 사용할 수 있는 다른 데이터베이스뿐 인사이드라면 전환하십시오 기술서임을 postgresql rdm 너회의
\c databaseName
전환할 경우 특정 데이터베이스 시도하시겠습니까 시작할 때,
'/Applications/Postgres.app/Contents/Versions/9.5/bin/psql 비니시드브.'
기본적으로 Postgres 실행됩니 포트 5432. 다른 경우, 통과할 수 있는 포트 실행됩니 smartupdate 명령줄입니다.
'-' /Applications/Postgres.app/Contents/Versions/9.5/bin/psql p2345 비니시드브.
간단한 앨리어스입니다 이 제품을 통해 판단할 수 있습니다.
'이바시르 .bash_profile 앨리어스를 만들 수 있는' 또는 ''
function psql()
{
db=vigneshdb
if [ "$1" != ""]; then
db=$1
fi
/Applications/Postgres.app/Contents/Versions/9.5/bin/psql -p5432 $1
}
이를 '에서' 파스크라 실행하십시오 명령행을 전환하십시오 기본 데이터베이스. 파스크라 아노테르브 ',' db 에 인수, 시작할 때 전환하십시오 이름을 가진 것으로 보인다.
명시적으로 명시된 것은 아니지만, 어떤 특정 스키마에는 질문 / 데이터베이스당 연결하는 것입니다.
또 다른 옵션은 직접 연결한 스키마에는. 예:
sudo - u - d 'postgres 파스크라 my_database_name'
파스크라 관계자는 '남자':
-d dbname
--dbname=dbname
Specifies the name of the database to connect to. This is equivalent to specifying dbname as the first non-option argument on the command line.
If this parameter contains an = sign or starts with a valid URI prefix (postgresql:// or postgres://), it is treated as a conninfo string. See Section 31.1.1, “Connection Strings”, in the
documentation for more information.
또 다른 대답을 언급한 바와 같이 사용할 수 있는 다양한 데이터베이스 연결 변경할 필요가 있습니다.
Postgres 수행됨 스키마에는. 단일 데이터베이스에 구성표과 여러 개 있을 수 있습니다. 따라서 하나의 데이터베이스 및 you& # 39, re apc® 변경할 스키마에는 할 수 있습니다.