Created
January 4, 2017 16:49
-
-
Save omps/9f9fb5ed0f70f5bccfc30c496d87ffef to your computer and use it in GitHub Desktop.
mysql common pitfalls.
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 all users in the db. | |
SELECT User FROM mysql.user; | |
#create database | |
create database mysql_test; | |
# create new mysql user | |
GRANT ALL PRIVILEGES ON dbTest.* To 'user'@'hostname' IDENTIFIED BY 'password'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment