我有以下部分代码:
engine = create_engine("postgresql+psycopg2://postgres:root@localhost/postgres2")
当我运行它时,我收到错误:
connection to server at "localhost" (::1), port 5432 failed: FATAL: password authentication failed for user "postgres"
如何解决?
我尝试更改用户名,但没有成功。
我重置了 postgresql 中的设置