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

前端 未结 5 1910
情深已故
情深已故 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:25

    @Kol_ya created new user using CREATE USER 'username'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; where username = creation of new username and password = current password to login for root(username created with caching_sha2). This step allowed me to connect to MySql Server 8.0.13 without having caching_sha2 authentication error. Looked for solution several threads but this one helped just like that. Thanks @kol_ya

    Suggestion to people who are having caching_sha2 issue. In server side make sure your user authentication type is standard not caching_sha2_password.

提交回复
热议问题