Postgres: psql: FATAL: 数据库 "root" 在 windows 10 中不存在
Postgres: psql: FATAL: database "root" does not exist in windows 10
请检查下面我使用的命令 运行:
C:\Windows\system32>psql -U root
Password for user root:
psql: FATAL: database "root" does not exist
如果您没有明确指定要连接到哪个数据库,psql
将使用与数据库用户同名的数据库。
由于您指定了数据库用户 root
,psql
尝试连接到该名称的数据库,但该数据库不存在。
尝试指定现有数据库:
psql -U root -d mydb
如果您不知道要使用哪个数据库,或者您从未创建过数据库,您可以随时使用 postgres
数据库。
请检查下面我使用的命令 运行:
C:\Windows\system32>psql -U root
Password for user root:
psql: FATAL: database "root" does not exist
如果您没有明确指定要连接到哪个数据库,psql
将使用与数据库用户同名的数据库。
由于您指定了数据库用户 root
,psql
尝试连接到该名称的数据库,但该数据库不存在。
尝试指定现有数据库:
psql -U root -d mydb
如果您不知道要使用哪个数据库,或者您从未创建过数据库,您可以随时使用 postgres
数据库。