# Data Sourceを追加

Dashcombがサポートしているデータベースを利用して、新しい[Data Source](https://github.com/dashcomb/gitbook-doc/blob/master/tips-and-tricks/broken-reference/README.md)として追加することができます。

## 準備

* Dashcomb以外のところでDashcombがサポートしているデータベースを作成しておきます。

## 実現

* [Data Source接続の設定](https://github.com/dashcomb/gitbook-doc/blob/master/tips-and-tricks/broken-reference/README.md)ページで「新規登録」ボタンをクリックします。
* 作成済みの接続先のデータベース種類を選びます。
* 「データソース名」を入力します。（ステージングとプロダクションが共有）
* 「環境」は「ステージング」か「プロダクション」を選びます。
* 接続先DBの「ホスト」を入力します。
* 接続先DBの「ポート」を入力します。
* 接続先DBの「データベース名」を入力します。
* 接続先DBの「ユーザー名」を入力します。
* 接続先DBの「パスワード」を入力します。
* 「SSH経由」お勧めしているので、ONにしてください。
* 踏み台サーバの「SSHホスト」を入力します。
* 踏み台サーバの「SSHポート」を入力します。
* 踏み台サーバの「ユーザー」を入力します。
* 「キータイプ」は「ED25519」か「RSA」を選びます。
* 「公開鍵」をコピーして、`~/.ssh/authorized_keys` に追加してください。
* 「接続テスト」ボタンをクリックして、「成功しました」の結果を確認します。
* 「保存」ボタンを押すと、新しいDBの作成ができました。

## 参照項目

* [データベースへの接続](/dashcomb-help-center/ide/others/dtassu/database.md)
* [DBクエリの追加](/dashcomb-help-center/tips-and-tricks/add-a-database-query.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.dashcomb.com/dashcomb-help-center/tips-and-tricks/add-a-new-database.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
