1. The document discusses RESTful APIs and gRPC, comparing their characteristics and use cases.
2. RESTful APIs typically use HTTP and JSON to access resources via URLs while gRPC uses protocol buffers and HTTP/2 for efficient streaming and RPC.
3. gRPC is better suited for microservices and mobile apps due to its ability to handle streaming and performance, while REST is more widely used due to its simplicity and support in most languages.
18. 管理編
ROLEの権限の確認
ユーザーの権限確認と同じようにSHOW GRANTS構
文
'%' がない場合は勝手に付与される
mysql> SHOW GRANTS FOR ro_role;
+-----------------------------------------+
| Grants for ro_role@% |
+-----------------------------------------+
| GRANT USAGE ON *.* TO `ro_role`@`%` |
| GRANT SELECT ON `d1`.* TO `ro_role`@`%` |
+-----------------------------------------+
18
21. 運用編
SET DEFAULT ROLE <ROLE名> TO user@host;
デフォルトで有効化するROLEを指定できる。
デフォルトとはサーバーに接続,認証した時,SET
ROLE DEFAUL構文
SET DEFAULT ROLE NONE TO user@host;
SET DEFAULT ROLE ALL TO user@host;
ROLEもユーザーもカンマ区切りで複数指定可能。
21