首先:pg_ctl start 或 net start PostgreSQL
然后:psql -U postgres:开启服务
然后:一直回车直到显示postgres-#
然后\l 命令查看当前表空间下的情况:如下
postgres=# \l
数据库列表
名称 | 拥有者 | 字元编码 | 校对规则 | Ctype | 存取权限
-----------+----------+----------+-------------------+-------------------+-----------------------
postgres | postgres | UTF8 | Chinese_China.936 | Chinese_China.936 |
template0 | postgres | UTF8 | Chinese_China.936 | Chinese_China.936 | =c/postgres +
| | | | | postgres=CTc/postgres
template1 | postgres | UTF8 | Chinese_China.936 | Chinese_China.936 | =c/postgres +
| | | | | postgres=CTc/postgres
(3 行记录)
拥有者即为用户,名称是数据库,字