LoginSignup
1
2

More than 5 years have passed since last update.

RDSリードレプリカで Re:dash環境をつくる(セットアップ編)

Last updated at Posted at 2016-08-13

これまで

今回やること

Re:dashのデータソースをRDSに設定
http://docs.redash.io/en/latest/setup.html#setup

ログイン

まずはadminでログイン
user: admin
password: admin

ログインできたらOK
データソースがないからまだ何も表示されない

データソースをRDSに設定

Re:dashではデータソースの設定を管理画面から設定する
http://docs.redash.io/en/latest/setup.html#datasources

you need to setup your data sources in it. Browse to /data_sources on your instance, to create new data source connection.

右上のDBマーク → + New Data Source

Data Source追加

  • Name: trunk-for-redash(自由)
  • Type: Mysql
  • Database name: MysqlのDBの名前
  • Host: RDSのエンドポイントURL(RDS → DBインスタンス選択 → 虫眼鏡マーク → エンドポイント)
  • Password: Mysqlのパスワード
  • Port: RDSのポート(RDS → DBインスタンス選択 → 虫眼鏡マーク → ポート)
  • User: Mysqlのユーザー

試しにクエリ発行してみる

ダッシュボード作成

ホーム → New Dashboard

クエリー作成

Dashboard内 → New Query
Data Source をさっきつくったRDSのリードレプリカにする
左側のスキーマ画面に全テーブルが表示されればうまく接続できている。
もし正しく表示されない場合はデータソースのRDSの情報が間違っている
右側のsqlを書くところにsqlかいてみる。
select * from 〇〇
Executeで実行すると下に見やすく整形されて結果が出力されればOK

次やること

RDSリードレプリカで Re:dash環境をつくる(Google認証編)

1
2
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
1
2