Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save hasinur1997/14dcedae1c16fade82783b745834eb91 to your computer and use it in GitHub Desktop.
Save hasinur1997/14dcedae1c16fade82783b745834eb91 to your computer and use it in GitHub Desktop.
sudo mysql -u root
mysql> USE mysql;
mysql> UPDATE user SET plugin='mysql_native_password' WHERE User='root';
mysql> FLUSH PRIVILEGES;
mysql> exit;
service mysql restart

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment