postgresql 当我运行python www.example.com时出现错误manage.py

5lhxktic  于 2023-03-01  发布在  PostgreSQL
关注(0)|答案(1)|浏览(124)

当我运行python www.example.com时进行迁移manage.py makemigrations
我得到这个错误:

(venv) ubuntu@ip-172-31-44-136:~/easy_django_repo$ python manage.py makemigrations
/home/ubuntu/venv/lib/python3.10/site-packages/django/core/management/commands/makemigrations.py:143: RuntimeWarning: Got an error checking a consistent migration history performed for database connection 'default': connection to server at "localhost" (127.0.0.1), port 5432 failed: FATAL:  password authentication failed for user "Scribe3501"
connection to server at "localhost" (127.0.0.1), port 5432 failed: FATAL:  password authentication failed for user "Scribe3501"

  warnings.warn(
No changes detected

这是我在www.example.com上的数据库setting.py:

DATABASES = {
    "default": {
        "ENGINE": "django.db.backends.postgresql_psycopg2",
        "NAME": "Uninsured4645",
        "USER": "Scribe3501",
        "PASSWORD": "****",
        "HOST": "localhost",
        "PORT": ''
    }
}

我尝试使用以下选项重置密码:

CREATE USER ubuScribe3501t WITH PASSWORD '****';
sy5wg1nm

sy5wg1nm1#

嗨,这是你的用户密码,你正在创建...似乎你的数据库密码是不正确的检查,如果你是正确的数据库连接

相关问题