【Mysql学习】django.db.utils.OperationalError: (1045:Access denied for user 'root'@'localhost' (using password: NO)问题解决


mysql -u root -p
use mysql;
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'newpassword';  
FLUSH PRIVILEGES;
posted @ 2021-11-16 13:08  gtea  阅读(225)  评论(0编辑  收藏  举报