Created
September 7, 2018 00:09
-
-
Save srockstyle/738e529480699fdc73837c5e6fb0a877 to your computer and use it in GitHub Desktop.
MySQL8でのユーザ作成
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> CREATE ROLE super_user_role; | |
Query OK, 0 rows affected (0.11 sec) | |
mysql> GRANT ALL ON srockstyle.* TO super_user_role; | |
Query OK, 0 rows affected (0.15 sec) | |
mysql> CREATE USER 'srockstyle'@'%' IDENTIFIED BY "aaaaaaaaa" DEFAULT ROLE super_user_role; | |
Query OK, 0 rows affected (0.02 sec) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment