Last active
November 9, 2018 16:59
Revisions
-
SunDi3yansyah revised this gist
Oct 31, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,7 +8,7 @@ mysql > SELECT User, Host FROM mysql.user; mysql > DROP USER 'root'@'localhost'; ``` ``` mysql > CREATE USER 'root'@'localhost' IDENTIFIED BY 'STRING-PASSWORD-NYA'; ``` ``` mysql > GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION; -
SunDi3yansyah created this gist
Aug 25, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,24 @@ ``` $ > sudo mysql -uroot ``` ``` mysql > SELECT User, Host FROM mysql.user; ``` ``` mysql > DROP USER 'root'@'localhost'; ``` ``` mysql > CREATE USER 'root'@'localhost' IDENTIFIED BY ''; ``` ``` mysql > GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION; ``` ``` mysql > FLUSH PRIVILEGES; ``` ``` mysql > exit ``` ``` $ > mysql -uroot ```