ubuntu 18 虚拟机安装(5) postgres sql 数据库 简单 应用
参考
PostgreSQL的基本使用整理
https://blog.csdn.net/qq_45658339/article/details/124431612
sudo su - postgres
psqlsudo -u postgres psql
sudo systemctl status postgresql
sudo systemctl start postgresql
sudo systemctl stop postgresql
添加用户
执行这句话的时候,一定要注意查看,当前是否是测试环境
drop role jack ;
create user jack with password '12345' superuser;
select * from pg_user;
pg_dump
pg_dump -h 127.0.0.1 -U jack-d abc -f abc_bak_2024_06_28.sql