warrior@pc:~$ sudo apt-get install postgresql-xx-xx   #可以使用Tab键进行代码补全

warrior@pc:~$ sudo su postgres             #切换到 postgres 

postgres@pc:/home/warrior$ psql postgres                       # 登录 postgres 数据库

postgres@pc:/home/warrior$ psql postgres
psql (9.1.9)
Type "help" for help.

postgres=# ALTER USER postgres WITH PASSWORD '123123a';  #修改密码为123123a
ALTER ROLE
postgres=# \q
postgres@pc:/home/warrior$ exit

相关文章:

  • 2021-11-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-06
猜你喜欢
  • 2021-05-29
  • 2022-01-11
  • 2021-11-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-01
  • 2021-09-01
相关资源
相似解决方案