https://stackoverflow.com/questions/15301826/psql-fatal-role-postgres-does-not-exist

使用172.0.0.3docker postgres的时候出现了报错:SCRAM authentication requires libpq version 10 or above

已经是14.2。但是有时候可以用,有时候不行。项目的时候已经能运行了。

本地的数据库升级后还没使用

打开大象,进行连接,提示没有postgres这个用户,进行创建

createuser --superuser postgres

然后进入

psql -U postgres -h localhost

可以了

\c \l 都可以使用

bundle exec rake db:create
bundle exec rake db:migrate

桌面版进行连接,没有设置密码