Ubuntu安装PostgreSQl
生活随笔
收集整理的這篇文章主要介紹了
Ubuntu安装PostgreSQl
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
warrior@pc:~$ sudo apt-get install postgresql-xx-xx #可以使用Tab鍵進行代碼補全
warrior@pc:~$?sudo su postgres #切換到?postgres?
postgres@pc:/home/warrior$?psql postgres ? ? ? ? ? ? ? ? ? ? ? # 登錄 postgres 數(shù)據(jù)庫
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
轉(zhuǎn)載于:https://www.cnblogs.com/warrior/p/3301974.html
總結(jié)
以上是生活随笔為你收集整理的Ubuntu安装PostgreSQl的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: java读取ACCESS数据库的简单示例
- 下一篇: ubuntu安装五笔输入法(ibus-t