PostgreSQL 安装

sudo apt-get install postgresql-9.1

out put :)

 

Installation Finished. :)

Please read the official reference about how to use PostgreSQL

http://www.postgresql.org/docs/9.1/interactive/tutorial-createdb.html

 

____________

su root
su - postgres
#log into postgres

psql -U posgres

 

then we get into the postgreSQL console

postgres# ALTER USER postgres with password 'shift';
ALTER ROLE
postgres# ALTER ROLE postgres=# \q
exit
root@universe#

then we get out of the database console.

restart the postgresql service

sudo service postgresql --restart

 

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

many things about postgresql ‘s role system

http://www.postgresql.org/docs/9.1/interactive/database-roles.html

 

comparing to mysql ==> such a easy one! Imean MySQL.

    原文作者:PostgreSQL
    原文地址: https://www.cnblogs.com/spaceship9/archive/2013/04/08/3007589.html
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞