Answers for "Access denied for user 'root'@'localhost' (using password: YES) when trying to connect"

SQL
2

Got error: 1698: Access denied for user 'root'@'localhost' when trying to connect

$ sudo mysql -u root # I had to use "sudo" since is new installation

mysql> USE mysql;
mysql> UPDATE user SET plugin='mysql_native_password' WHERE User='root';
mysql> FLUSH PRIVILEGES;
mysql> exit;

$ service mysql restart
Posted by: Guest on August-18-2020
1

access denied for user 'root'@'localhost' python sql-connect error

SELECT user,authentication_string,plugin,host FROM mysql.user;
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'Current-Root-Password';
FLUSH PRIVILEGES;
Posted by: Guest on May-03-2020

Code answers related to "Access denied for user 'root'@'localhost' (using password: YES) when trying to connect"

Code answers related to "SQL"

Browse Popular Code Answers by Language