切换postgres用户
sudo -i -u postgres
进入Postgres数据库
psql
创建root帐号
create user root with login password '123456';
将root帐号提升为超级帐号
ALTER USER root WITH SUPERUSER;
sudo -i -u postgres
psql
create user root with login password '123456';
ALTER USER root WITH SUPERUSER;
评论 (0)