POSTGRESQL 学习

Posted on 2020-10-03 in how-to • Tagged with postgresql, database

安装配置 PostgreSQL

安装 postgresql 并登录至 postgres 用户环境

$ sudo apt install postgresql
$ sudo -i -u postgres
$ psql

创建角色以及数据库

>> CREATE ROLE demo_role LOGIN PASSWORD 'demo_password';
>> CREATE DATABASE demo_db WITH owner = demo_role;

默认安 …


Continue reading