Created
September 18, 2020 00:22
-
-
Save ulmaull/f73ceab9f4b2bc93f9a9688f5fe46085 to your computer and use it in GitHub Desktop.
Revisions
-
ulmaull created this gist
Sep 18, 2020 .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 'STRING-PASSWORD-NYA'; ``` ``` mysql > GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION; ``` ``` mysql > FLUSH PRIVILEGES; ``` ``` mysql > exit ``` ``` $ > mysql -uroot ```