Skip to content

Instantly share code, notes, and snippets.

@Tydewest
Created December 29, 2020 08:34
Show Gist options
  • Select an option

  • Save Tydewest/bc165ea36c6269303214ee9c19ab35ac to your computer and use it in GitHub Desktop.

Select an option

Save Tydewest/bc165ea36c6269303214ee9c19ab35ac to your computer and use it in GitHub Desktop.
mysql -u USERNAME -p;
UPDATE mysql.user SET Host='%' WHERE Host='localhost' AND User='root';
UPDATE mysql.db SET Host='%' WHERE Host='localhost' AND User='root';
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'HeatWaves2020';
FLUSH PRIVILEGES;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment