Postgresql 教程

Official 教程

PostgreSQL帐号

1. PostgreSQL 用户帐号和操作系统用户帐号是不同的,系统用户帐号是postgres.

sudo -u postgres -i 

Use the operating system user postgres to create your database - as long as you haven't set up a database role with the necessary privileges that corresponds to your operating system user. 

退出psql控制台

和其他的命令行工具不一样,psql在退出时并不是使用exit,而是使用\q,接着按下回车就行了,这里的q指的就是quit。

猜你喜欢

转载自www.cnblogs.com/dulun/p/12198934.html