相关疑难解决方法(0)

Postgresql没有以"createdb"作为超级用户创建数据库,但没有输出错误

我正在使用'postgres'超级用户进行全新的postgresql安装.登录通过:

sudo -u postgres psql


postgres=# createdb database
postgres-# \list
                                  List of databases
   Name    |  Owner   | Encoding |  Collation  |    Ctype    |   Access privileges   
-----------+----------+----------+-------------+-------------+-----------------------
 postgres  | postgres | UTF8     | en_GB.UTF-8 | en_GB.UTF-8 | 
 template0 | postgres | UTF8     | en_GB.UTF-8 | en_GB.UTF-8 | =c/postgres
                                                             : postgres=CTc/postgres
 template1 | postgres | UTF8     | en_GB.UTF-8 | en_GB.UTF-8 | =c/postgres
                                                             : postgres=CTc/postgres
Run Code Online (Sandbox Code Playgroud)

没有错误,但没有创建表.有任何想法吗?

postgresql psql

88
推荐指数
5
解决办法
5万
查看次数

标签 统计

postgresql ×1

psql ×1