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。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。