Postgresql 常用操作
切换用户
1 | sudo su psotgres |
登陆
1 | psql |
创建 gitlab 这个数据库:
1 | create database gitlab owner postgres; |
修改数据库Owner
1 | alter database db owner to user; |
权限添加
1 | grant all privileges on database gitlab to postgres; |
其他操作
1 | - 查看数据库: \l |
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment