SQLAlchemy no password supplied error

后端 未结 4 559
情话喂你
情话喂你 2020-12-23 16:27

This is probably a silly error but I cannot seem to find a satisfying solution.

When running db.create_all(), I got the following error.



        
4条回答
  •  臣服心动
    2020-12-23 16:50

    On your Mac, PostgreSQL was set up for trust or peer authentication for connections from localhost.

    On your Ubuntu box it's set up for md5 authentication for connections from localhost.

    You'll want to configure a password, or change the authentication mode. See pg_hba.conf, and the Ubuntu guide for PostgreSQL (there's a section about this error).

提交回复
热议问题