Created
August 31, 2021 20:16
-
-
Save eusonlito/b74e6611030e2a1ac4037f95bc8f2bf0 to your computer and use it in GitHub Desktop.
Create a new MySQL database and user
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 `DB` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; | |
CREATE USER "USR"@"localhost" IDENTIFIED BY "PWD"; | |
CREATE USER "USR"@"127.0.0.1" IDENTIFIED BY "PWD"; | |
GRANT ALL ON `DB`.* TO "USR"@"localhost"; | |
GRANT ALL ON `DB`.* TO "USR"@"127.0.0.1"; | |
FLUSH PRIVILEGES; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment