Last active
June 21, 2018 10:38
-
-
Save carlessanagustin/32e41b3d8f22f2545cb87f84e316c7e2 to your computer and use it in GitHub Desktop.
MySQL Cheat Sheet
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
# Show users | |
SELECT User, Host, Password FROM mysql.user; | |
# Create backup user | |
GRANT ALL PRIVILEGES ON *.* TO `backup`@`localhost` IDENTIFIED BY 'backup_password'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment