用户讨论:Jinzd

来自Ubuntu中文
Jinzd留言 | 贡献2016年5月11日 (三) 14:10的版本 →‎PostgreSQL
跳到导航跳到搜索
可打印版本不再受到支持且可能有渲染错误。请更新您的浏览器书签并改用浏览器默认打印功能。

PostgreSQL

For newest Ubuntu 16.04 postgresql is ready to install:

jinzd@ubuntu:~S sudo apt install postgresql-9.5

Get postgresql ready to use, set password is the first step:

jinzd@ubuntu:~S sudo -u postgres psql template1

template1=# \password postgres;

or

jinzd@ubuntu:~S sudo -u postgres psql postgres

postgres=# \password postgres;

Create database:

jinzd@ubuntu:~S sudo -u postgres created JUniverse

Create user:

jinzd@ubuntu:~S sudo -u postgres createuser