Created
April 22, 2024 14:52
-
-
Save soham2008xyz/70af22ce1d6f7a41d15a654db769efd6 to your computer and use it in GitHub Desktop.
Grant all privileges to root user (on MySQL 8)
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 characters
CREATE USER 'root'@'%' IDENTIFIED BY 'secret'; | |
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION; | |
FLUSH PRIVILEGES; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment