django.db.utils.OperationalError: (1045, "Access denied for user 'root'@'localhost' (using password: YES)")

Do you want to know the information about “django.db.utils.OperationalError: (1045, "Access denied for user 'root'@'localhost' (using password: YES)")”. If yes, you’re in the correct article.

django.db.utils.OperationalError: (1045, "Access denied for user 'root'@'localhost' (using password: YES)")

mysql> grant all privileges on *.* to root@localhost identified by 'password' with grant option;
create user 'django'@'localhost' identified by 'django-user-password';
grant usage on *.* to 'django'@'localhost';
grant all privileges on django-database-1.* to 'django'@'localhost';

Final Thoughts

I hope this tutorial helps you to know about “django.db.utils.OperationalError: (1045, "Access denied for user 'root'@'localhost' (using password: YES)")”. If you have any doubts regarding this article please let us know via the comment section. Share this article with your friends and family via social networks.

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coder Diksha. Here, I post about programming to help developers.

Share on:

Leave a Comment