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