个人工具

“用户讨论:Jinzd”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
PostgreSQL
PostgreSQL
第10行: 第10行:
  
 
<pre>
 
<pre>
sudo -u postgres psql template1
+
jinzd@ubuntu:~S sudo -u postgres psql template1
  
 
template1=# \password postgres;
 
template1=# \password postgres;
第16行: 第16行:
 
or
 
or
  
sudo -u postgres psql postgres
+
jinzd@ubuntu:~S sudo -u postgres psql postgres
  
 
postgres=# \password postgres;
 
postgres=# \password postgres;
 
</pre>
 
</pre>

2016年5月11日 (三) 14:02的版本

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;