0
点赞
收藏
分享

微信扫一扫

postgres数据库简单的使用


postgres数据库简单的使用

  [root@hadoop001 cloudera-scm-server]# /usr/bin/psql -U scm -d scm -p 7432
用户 scm 的口令:
psql (8.4.20)
输入 "help" 来获取帮助信息.


scm=> ?
scm-> \?   



                                       资料库列表

   名称    |    拥有者    | 字元编码 |  排序规则  |   Ctype    |             存取权限              

-----------+--------------+----------+------------+------------+----------------------------------- 

  amon      | amon         | UTF8     | en_US.UTF8 | en_US.UTF8 |  

  hive      | hive         | UTF8     | en_US.UTF8 | en_US.UTF8 |  

  nav       | nav          | UTF8     | en_US.UTF8 | en_US.UTF8 |  

  postgres  | cloudera-scm | UTF8     | en_US.UTF8 | en_US.UTF8 |  

  rman      | rman         | UTF8     | en_US.UTF8 | en_US.UTF8 |  

  scm       | scm          | UTF8     | en_US.UTF8 | en_US.UTF8 |  

  template0 | cloudera-scm | UTF8     | en_US.UTF8 | en_US.UTF8 | =c/"cloudera-scm" 

                                                                : "cloudera-scm"=CTc/"cloudera-scm" 

  template1 | cloudera-scm | UTF8     | en_US.UTF8 | en_US.UTF8 | =c/"cloudera-scm" 

                                                               : "cloudera-scm"=CTc/"cloudera-scm"


与CDH相关信息:知道为什么需要创建 hive  等数据库了。

举报

相关推荐

0 条评论