Last active
December 31, 2015 18:09
-
-
Save rotexdegba/8025451 to your computer and use it in GitHub Desktop.
MySQL commands to create users via the mysql command line utility
This file contains 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
# mysql --user=root --password=somepassword #connect to mysql as root or any other user that has the appropriate user creation permissions | |
# mysql> CREATE USER 'rotimi'@'localhost' IDENTIFIED BY 'password'; | |
# mysql> GRANT ALL PRIVILEGES ON *.* TO 'rotimi'@'localhost' WITH GRANT OPTION; | |
# mysql> CREATE USER 'rotimi'@'%' IDENTIFIED BY 'password'; | |
# mysql> GRANT ALL PRIVILEGES ON *.* TO 'rotimi'@'%' WITH GRANT OPTION; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment