PostgreSQL
Code Sheep
非科班出生,野路子程序员一枚!
展开
-
Ubuntu安装与配置Postgres
创建文件存储库配置:sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'导入存储库签名密钥:wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -更新程序包列原创 2020-12-08 09:22:58 · 1099 阅读 · 0 评论 -
PostgreSQL创建用户和超级用户
普通用户create role user1 with login password ‘123456’;其中“user1”是用户名,“123456”是密码超级用户CREATE ROLE user1 superuser PASSWORD '123456' login;login 是赋予登录权限,否则是不能登录的原创 2020-11-26 17:13:18 · 14525 阅读 · 0 评论