Guest User

Untitled

a guest
Feb 18th, 2019
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '<password>';
  2.  
  3. ALTER USER 'root'@'localhost' IDENTIFIED BY '<password>';
  4.  
  5. # OR
  6. # ------------
  7. # Not Tested
  8.  
  9. UPDATE mysql.user SET password = PASSWORD('password') WHERE user = 'root';
  10.  
  11. # if password column is not available use below
  12. UPDATE user SET authentication_string=password('YOURNEWPASSWORD') WHERE user='root';
  13.  
  14.  
  15. UPDATE mysql.user SET plugin = 'mysql_native_password' WHERE user = 'root' AND plugin = 'unix_socket';
Add Comment
Please, Sign In to add comment