Postgresql Tips

mac下brew安裝postgresql後如何啓動

運行命令:sql

brew info postgresql

而後信息裏有提示數據庫

mac下brew安裝後使用pgadmin鏈接本地的時候提示 psql: FATAL: role 「postgres」 does not exist 的解決辦法

創建postgres用戶便可post

/usr/local/Cellar/postgresql/9.2.4/bin/createuser -s postgres

添加connectby支持

psql -d dbname -f /usr/local/Cellar/postgresql/9.3.1/share/postgresql/extension/tablefunc--1.0.sql

或者postgresql

psql -d dbname

CREATE EXTENSION tablefunc

也能夠直接在pgadmin中選中數據庫調出SQL queries面板直接使用上面的命令code

相關文章
相關標籤/搜索