我使用以下查询创建数据库:
create database sample;
但是当我尝试访问数据库Psequel GUI或我的nodejs服务器时,我不断收到此错误:
数据库"样本"不存在
数据库样本清晰可用,如下所示。
List of databases
Name | Owner | Encoding | Collate | Ctype | Access privileges
-----------+----------+----------+---------+-------+-----------------------
postgres | postgres | UTF8 | C | C |
reveal | postgres | UTF8 | C | C |
revealdb | postgres | UTF8 | C | C |
sampl | postgres | UTF8 | C | C |
sample | postgres | UTF8 | C | C |
template0 | postgres | UTF8 | C | C | =c/postgres +
| | | | | postgres=CTc/postgres
template1 | postgres | UTF8 | C | C | =c/postgres +
| | | | | postgres=CTc/postgres