Skip to content

Instantly share code, notes, and snippets.

@junex
Created March 14, 2019 14:35
Show Gist options
  • Save junex/2ca89a1435b442fa9dee4ef3f4fc25a1 to your computer and use it in GitHub Desktop.
Save junex/2ca89a1435b442fa9dee4ef3f4fc25a1 to your computer and use it in GitHub Desktop.
set password = password('password');
use mysql;
update user set Host='%' where User='root';
flush privileges;
grant all privileges on *.* to 'user'@'host' with grant option;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment