sudo su  postgres   
psql
\password postgres
输入密码
\q

本机调试的时候,最好在装完以后添加一个pgsql的管理员帐号,否则phppgadmin不让登陆

 

创建用户

sudo su - postgres
psql
create user "myUser" with password '12345';
create database "myDB" owner "myUser";
grant all privileges on database "myDB" to "myUser";
\q

 

修改已有的db owner

ALTER DATABASE xxx OWNER TO yyy;

 

pgsql新手入门

pgsql数据库入门 

 

相关文章:

  • 2021-12-05
  • 2022-12-23
  • 2021-11-28
  • 2021-12-17
  • 2021-11-21
  • 2022-12-23
  • 2021-09-19
  • 2022-01-02
猜你喜欢
  • 2022-12-23
  • 2021-09-04
  • 2022-12-23
  • 2021-10-28
  • 2021-05-24
  • 2021-09-20
相关资源
相似解决方案