Postgres psql: 致命错误: 角色 “postgres“ 不存在

运行"C:\Program Files\PostgreSQL\11\scripts\runpsql.bat" 的时报错。
Postgres psql: 致命错误: 角色 “postgres“ 不存在_第1张图片
原因:PostgreSQL角色没有被创建。运行命令:createuser -s -r postgres 即可。
如果找不到createuser这个命令,可以在\PostgreSQL\11\bin中找到。添加到系统path中,或cd到这个文件夹再运行

你可能感兴趣的:(数据库,postgresql,数据库)