首页 > 数据库技术 > 详细

PostgreSQL Installation

时间:2019-10-15 16:15:04      阅读:99      评论:0      收藏:0      [点我收藏+]

PostgreSQL

Installation

MacOS

brew install postgresql
brew services start postgresql
brew cask install pgadmin4

# HostName 127.0.0.1
# Port 5432
# DataBase postgre
# UserName ${MAC_USER_NAME}

User Guide

PostgreSQL 11.2 手册
PostgreSQL 11.5 Documentation

# MacOS
psql postgres

## Init
CREATE USER marxiotadmin WITH ENCRYPTED PASSWORD ‘marxiot1688‘;
\du
CREATE DATABASE marxiot OWNER marxiotadmin;
\l
GRANT ALL PRIVILEGES ON DATABASE marxiot TO marxiotadmin;
\l

# Clean
REVOKE ALL ON DATABASE  marxiot from marxiotadmin;
\l
DROP DATABASE IF EXISTS marxiot;
\l
DROP USER marxiotadmin;
\du

PostgreSQL Installation

原文:https://www.cnblogs.com/acmeryblog/p/11678286.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!