PostgreSQL을 Mac OS X (10.6)에 설치했습니다. 구체적으로는 the EnterpriseDB입니다. 응용 프로그램에서 폴더 PostgreSQL 9.1을 만들었으며 SQL Shell (psql) .app이 있습니다. 이 응용 프로그램을 연 후 터미널 창을 열었습니다. 명령 줄에 어디입니까 서버 [localhost] :.PostgreSQL - 작업 방법?
약간 혼란 스럽지만이 DB 시스템에 어떻게 로그인/로그인 할 수 있습니까? 나는 그냥 터미널 창에 입력하는 MySQL에 버릇이있다. mysql -u username -p password 그리고 모든 것이 작동 할 준비가되어있다. 그러나 여기 나는 다소 혼란 스럽다. 어떻게 PostgreSQL 데이터베이스에 로그인 할 수 있는가>
편집
locate psql | grep /bin
WARNING: The locate database (/var/db/locate.database) does not exist.
To create the database, run the following command:
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist
Please be aware that the database can take some time to generate; once
the database has been created, this message will no longer appear.
'psql'을 입력하면,'-bash : psql : command not found'가 표시됩니다. 내가'하려고 할 때 위치 psql | grep/bin', 원래 게시물 (긴 문장)에 게시 한 오류가 있습니다. 그것을 고치는 방법? – user984621
바이너리를 찾으려면 이것을 시도하십시오 : find/-name psql – guettli