mysql_exceptions.OperationalError: (1045, “Access denied for user 'root'@'localhost' (using password: YES)”)

前端 未结 7 1724
长情又很酷
长情又很酷 2020-12-14 10:06

I\'ve started working with django, and here is the error on \'runserver\' after setting up \'DATABASES\' in settings.py

mysql_exceptions.OperationalError: (1         


        
7条回答
  •  清歌不尽
    2020-12-14 10:25

    For anyone encountering this issue - check to make sure that the database user host is localhost . If set to %, it won't work, you will need to add localhost or change your overall security settings.

提交回复
热议问题