# コンテキストベースのダイナミック接続によってデータベースからデータを読み取り

このシナリオでは、デモンストレーションの目的でMySQLを使用しています。同じデータストラクチャーを持つデータベーステーブルからデータが読み取られますが、データベースはそれぞれ*project\_q1*と*project\_q2*という2つの異なるMySQLデータベースが使用されます。これらのデータベースへの接続は、ランタイムに動的に指定されるため、ジョブを変更する必要はありません。

### このセクション内

* [コンポーネントをドロップしてリンク](https://help.qlik.com/talend/ja-JP/components/8.0/defining-context-groups/dropping-and-linking-components-standard-component-drop)
* [コンテキスト変数の作成](https://help.qlik.com/talend/ja-JP/components/8.0/defining-context-groups/creating-context-variable-standard-component-to-be)
* [コンポーネントの設定](https://help.qlik.com/talend/ja-JP/components/8.0/defining-context-groups/configuring-components-standard-component)
* [ジョブを保存して実行](https://help.qlik.com/talend/ja-JP/components/8.0/defining-context-groups/saving-and-executing-job-standard-component-press)

**関連情報**

[tMysqlConnection](https://help.qlik.com/talend/ja-JP/components/8.0/mysql/tmysqlconnection)

[tMysqlInput](https://help.qlik.com/talend/ja-JP/components/8.0/mysql/tmysqlinput)

[tLogRow](https://help.qlik.com/talend/ja-JP/components/8.0/logs-and-errors/tlogrow)

[tMysqlClose](https://help.qlik.com/talend/ja-JP/components/8.0/mysql/tmysqlclose)