Last active
August 29, 2015 14:00
-
-
Save hectorperez/11222278 to your computer and use it in GitHub Desktop.
MySQL: Create database, user & give privileges
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
CREATE DATABASE new_database; | |
CREATE USER 'new_user'@'localhost' IDENTIFIED BY 'new_password'; | |
GRANT ALL PRIVILEGES ON your_database_name.* TO 'your_user'@'localhost'; | |
FLUSH PRIVILEGES; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment