postgreSQL 添加数据库访问用户

104 阅读1分钟

psql.exe -h localhost -p 5432 -U postgres

假设用户名为myuser 密码为pass

CREATE ROLE myuser WITH LOGIN PASSWORD 'pass';