Answers for "MySQLdb._exceptions.OperationalError: (1698, "Access denied for user 'root'@'localhost'")"

13

ERROR 1698 (28000): Access denied for user 'root'@'localhost'

>>> sudo mysql -u root -p

>>> USE mysql;

>>> UPDATE user SET plugin='mysql_native_password' WHERE User ='root';

>>> FLUSH PRIVILEGES;

>>> exit;

>>> service mysql restart;
Posted by: Guest on July-09-2020
0

django.db.utils.OperationalError: (1698, "Access denied for user 'root'@'localhost'")

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';
Posted by: Guest on August-23-2020
0

ERROR 1698 (28000): Access denied for user 'root'@'localhost'

SET PASSWORD FOR 'bob'@localhost = PASSWORD("");
Posted by: Guest on June-09-2021

Code answers related to "MySQLdb._exceptions.OperationalError: (1698, "Access denied for user 'root'@'localhost'")"

Python Answers by Framework

Browse Popular Code Answers by Language