凡事都在事上磨,这样才能精进,成长进步提高! ------ 博客园首页

安装pg

initdb.exe -D "D:\Program Files\pgsql\data" -E UTF-8 --locale=chs -U postgres -W

 

pg_ctl.exe -D "D:\Program Files\pgsql\data" start

 

psql -U postgres

create user 你的账号 with password '密码';

GRANT ALL PRIVILEGES ON DATABASE postgres to 你的账号;

ALTER ROLE 你的账号 WITH SUPERUSER;

posted @ 2023-06-16 10:07  追风fc  阅读(21)  评论(0)    收藏  举报