Skip to content

Commit e94a4d8

Browse files
authored
Add set default role in instructions (#535)
* Add set default role in instructions Missed step from me, not sure why it worked initially, but it definitely didn't work without it * Add more semicolons
1 parent a2500e3 commit e94a4d8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -228,11 +228,13 @@ We'll setup a user called `sm_api`, and setup permissions
228228
```shell
229229
sudo mysql -u root --execute "
230230
CREATE DATABASE sm_dev;
231-
CREATE USER sm_api@'%'
231+
CREATE USER sm_api@'%';
232232
CREATE USER sm_api@localhost;
233233
CREATE ROLE sm_api_role;
234-
GRANT sm_api_role TO sm_api@'%'
234+
GRANT sm_api_role TO sm_api@'%';
235235
GRANT sm_api_role TO sm_api@localhost;
236+
SET DEFAULT ROLE sm_api_role FOR sm_api@'%';
237+
SET DEFAULT ROLE sm_api_role FOR sm_api@localhost;
236238
GRANT ALL PRIVILEGES ON sm_dev.* TO sm_api_role;
237239
"
238240
```

0 commit comments

Comments
 (0)