一、在默認配置條件下,本機訪問PostgreSQL
切換到Linux用戶postgres,然后執行psql:
$ su - postgres
Last login: Wed Mar 1 13:16:48 CST 2017 on pts/1
-bash-4.2$ psql
psql (9.2.18)
Type "help" for help.
postgres=#
此時就在數據庫postgres中了。
\l
查詢數據庫列表
\c 數據庫名 選擇數據庫
exit 退出
一、在默認配置條件下,本機訪問PostgreSQL
切換到Linux用戶postgres,然后執行psql:
$ su - postgres
Last login: Wed Mar 1 13:16:48 CST 2017 on pts/1
-bash-4.2$ psql
psql (9.2.18)
Type "help" for help.
postgres=#
此時就在數據庫postgres中了。
\l
查詢數據庫列表
\c 數據庫名 選擇數據庫
exit 退出
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。