5
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Aurora MySQLでSELECT権限のみを持つユーザーを作成する

Posted at

毎回調べていたのでメモ。
今回はredashからDBに接続するためのユーザーを作成した。

結果的に、Auroraだから特別な設定が必要なことはなく、MySQLのドキュメントを参照しながら進めれば解決した。

1. マスターユーザーで接続する

ここは省略。

2. ユーザー作成

CREATE USER 'redash'@'%' IDENTIFIED BY 'pass';

今回は1Passwordのパスワードジェネレーターで64文字のパスワードを生成し設定した。

3. 権限付与

GRANT SELECT ON some_database.* TO 'redash'@'%';

SELECTの権限のみ付与した。

5
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?