azure mysql
Create a read-only account with azure mysql 8.0
Notes
- When creating role and granting privileges, please use ‘%’ instead of ‘localhost’. For PaaS, ‘localhost’ means physical host machine that cannot be accessed in cloud considering security.
- After creating role and granting role privileges to the target user, please run [SET DEFAULT ROLE ALL TO ‘{username}’]
1 | create user 'foobarreader'@'%' identified by 'StrongPassword!'; |