django.db.utils.operationalError: (2059,“Authentication Plugin 'caching_sha2_password'”)

前端 未结 5 1938
情深已故
情深已故 2020-12-18 08:07

I am trying to connect my django project \'mysite\' to mysql. I made a user in mysql and granted it all privileges to access the project. These are the changes I made to set

5条回答
  •  难免孤独
    2020-12-18 08:12

    This error is typically gotten when the DB user don't have all access to the database

    Run this command:

    ALTER  USER 'username'@'ip_address' IDENTIFIED WITH mysql_native_password BY 'password';
    

    *Make sure to have your MySQL server running.

提交回复
热议问题