Created
December 24, 2015 04:11
-
-
Save cworks/f83c902112b97008bb68 to your computer and use it in GitHub Desktop.
Things to do after a mysql install
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
USE mysql; | |
UPDATE user SET Password = PASSWORD('your-root-password') | |
WHERE User = 'root'; | |
FLUSH PRIVILEGES; | |
# remove anonymous user | |
DELETE FROM user | |
WHERE User = ''; | |
# drop unsecured test database | |
DROP DATABASE IF EXISTS test; | |
# create a master user | |
CREATE USER 'your-master-user'@'localhost' IDENTIFIED BY 'your-master-user-password'; | |
GRANT ALL PRIVILEGES ON *.* TO 'your-master-user'@'localhost' WITH GRANT OPTION; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment