> For the complete documentation index, see [llms.txt](https://docs.keeper.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.keeper.io/keeperpam/jp/privileged-access-manager/connections/session-protocols/mariadb-connections.md).

# MariaDB接続

## 概要

KeeperPAMは、対話型CLIまたは視覚的な[KeeperDB](/keeperpam/jp/privileged-access-manager/keeperdb.md)インターフェースを通じて、MariaDBデータベースに対するゼロトラスト特権セッション管理を実現します。本ページでは、Keeperボルト内の**PAMデータベース**レコードでMariaDB接続を構成する方法をご紹介します。セッションはボルトから開始され、Keeperゲートウェイを経由して対象のデータベースに接続されます。

## 要件

まず、接続の[はじめに](/keeperpam/jp/privileged-access-manager/connections/getting-started.md)のページに記載されている要件をご確認ください。

MariaDB接続を構成するには、以下のPAMレコードが必要です。

<table><thead><tr><th width="198.12109375">PAMレコード</th><th>説明</th></tr></thead><tbody><tr><td><a href="/pages/uVvgPynMCsQ2XV3pYhck">PAM構成</a></td><td>対象に到達するために必要なインフラの詳細</td></tr><tr><td><a href="/pages/LRBwDgDW1lBeyGxKT88n">PAMデータベース</a></td><td>MariaDBホストと接続の詳細</td></tr><tr><td><a href="/pages/LvRDbzYKSe4VPUbMoFOB">PAMユーザー</a></td><td>セッションで使用するMariaDBの認証情報</td></tr></tbody></table>

{% hint style="info" %}
本ページでは、**MariaDBデータベース**レコードを対象として使用します。

MariaDBは[PAMデータベース](/keeperpam/jp/privileged-access-manager/getting-started/pam-resources/pam-database.md)レコードタイプで利用できます。
{% endhint %}

{% hint style="info" %}
視覚的なデータベースアクセス、モニタリング、KeeperAI支援の作業には[KeeperDB](/keeperpam/jp/privileged-access-manager/keeperdb.md)をご利用ください。認証情報を開示せずネイティブのデスクトップクライアントから接続するには[KeeperDB Proxy](/keeperpam/jp/privileged-access-manager/keeperdb-proxy.md)をご利用ください。
{% endhint %}

## PAM設定 - MariaDBプロトコル

### 接続設定へのアクセス

対象のPAMレコードを作成したら、接続設定を開きます。

1. PAMレコードを編集します。
2. **PAM設定**の **\[セットアップ]** をクリックします。
3. **\[接続]** セクションを開きます。

### 接続設定の構成

MariaDBプロトコルを構成する前に、以下の必須フィールドを設定します。

<table><thead><tr><th width="255.5078125">フィールド</th><th>説明</th></tr></thead><tbody><tr><td>PAM構成</td><td>対象インフラの詳細を含み、PAMレコードで構成されている対象へのアクセスに使用するPAM構成</td></tr><tr><td>管理者認証情報レコード</td><td>リンクされた<a href="/pages/LvRDbzYKSe4VPUbMoFOB">PAMユーザー</a>による認証および管理操作</td></tr></tbody></table>

以下の表は、MariaDB固有の接続設定の一覧です。

<table><thead><tr><th width="256.2734375">フィールド</th><th>説明</th></tr></thead><tbody><tr><td>プロトコル</td><td><strong>必須</strong><br>レコードに設定するプロトコル。<strong>MariaDB</strong>を選択すると、プロトコル設定が自動的に反映されます。</td></tr><tr><td>接続を有効にする</td><td><strong>必須</strong><br>このレコードで接続を有効にするトグル</td></tr><tr><td>グラフィカルセッションの録画</td><td>このレコードのグラフィカルセッション記録の有効化</td></tr><tr><td>テキストセッションレコーディング (Typescript)</td><td>タイミングデータ付きテキストセッション記録 (Typescript) の有効化</td></tr><tr><td>キー入力イベントを含める</td><td>セッション再生時のキー入力データの記録 (入力された機密情報が記録される場合あり)</td></tr><tr><td>接続ポート</td><td><p>プロトコル接続に使用するポート。デフォルトはPAMデータベースレコードのポート。ここで指定すると上書き。</p><p>MariaDBのデフォルトポート: <code>3306</code></p></td></tr><tr><td>接続用認証情報</td><td>接続認証に使用する認証情報。詳細は<a href="#connection-authentication-methods">接続認証方式</a>をご参照ください。</td></tr><tr><td>ボルトから認証情報を選択できるようにする</td><td>ユーザー自身の個人用認証情報による接続認証の許可。詳細は<a href="#connection-authentication-methods">接続認証方式</a>をご参照ください。</td></tr><tr><td>セッション終了時に接続用認証情報をローテーションする</td><td>セッション終了時の接続用認証情報の自動ローテーション</td></tr><tr><td>デフォルトのデータベース</td><td>セッション開始時に選択するデータベーススキーマ</td></tr><tr><td>CSVのエクスポート</td><td><code>SELECT ... INTO OUTFILE</code> またはKeeperDBのエクスポート機能によるCSVエクスポートの許可</td></tr><tr><td>CSVのインポート</td><td><code>LOAD DATA LOCAL INFILE ... INTO TABLE</code> によるCSVインポートの許可</td></tr><tr><td>クリップボードにコピー</td><td>セッション内テキストのコピーの許可</td></tr><tr><td>クリップボードから貼り付け</td><td>ローカルクリップボードからセッションへの貼り付けの許可</td></tr><tr><td>フォント名</td><td>ターミナルフォント。<code>guacd</code> を実行しているサーバーにインストールされた等幅フォントを指定</td></tr><tr><td>最大スクロールバックサイズ</td><td>ターミナルスクロールバックバッファの最大行数（デフォルト: <code>1000</code> 行）</td></tr><tr><td>読み取り専用</td><td>入力の禁止（セッションの表示のみ可能）</td></tr></tbody></table>

## 接続認証方式 <a href="#connection-authentication-methods" id="connection-authentication-methods"></a>

MariaDB接続では、以下の認証方式を使用できます。

* [**接続用認証情報**](/keeperpam/jp/privileged-access-manager/connections/authentication-methods.md#launch-credential)\
  PAMレコードにリンクされた認証情報が使用されます。ユーザーは接続のためにその認証情報に直接アクセスする必要はありません。
* [**個人用認証情報**](/keeperpam/jp/privileged-access-manager/connections/authentication-methods.md#personal-private-credentials)\
  \&#xNAN;**\[ボルトから認証情報を選択できるようにする]** が有効な場合、ユーザーは個人用ボルトの認証情報でセッションを認証できます。
* [**一時アカウント**](/keeperpam/jp/privileged-access-manager/connections/authentication-methods.md#ephemeral-account)\
  セッション用の一時的な特権アカウントが作成され、セッション終了後に削除されます ([ジャストインタイムアクセス](https://github.com/Keeper-Security/gitbook-jp-secrets-manager/blob/main/privileged-access-manager/connections/getting-started/just-in-time-access-jit.md))。

## セッションレコーディング - MariaDBプロトコル

<figure><img src="/files/ds0jCvTXjzc0NxhkkcfS" alt=""><figcaption><p>MariaDBセッションレコーディング</p></figcaption></figure>

このプロトコルでは、グラフィカルセッションと、タイミングデータを含む生テキストの両方が記録されます。記録の確認と再生については、[セッションのレコーディングと再生](/keeperpam/jp/privileged-access-manager/session-recording-and-playback.md)をご参照ください。

## KeeperDB設定

視覚的なデータベースアクセス、モニタリング、KeeperAI支援の作業は[KeeperDB](/keeperpam/jp/privileged-access-manager/keeperdb.md)から行えます。

<figure><img src="/files/TAGhb0TW4URjbF1BKD2w" alt=""><figcaption></figcaption></figure>

## JIT設定

<figure><img src="/files/CQ23eJ7vQmYHrVjmXr9n" alt=""><figcaption></figcaption></figure>

## トンネル設定

<figure><img src="/files/KMjHYHZSbAgjb8o66kKE" alt=""><figcaption></figcaption></figure>

## KeeperAI設定

<figure><img src="/files/aXyhU5A7B4QLgnBvAvwh" alt=""><figcaption></figcaption></figure>

## ワークフロー設定

<figure><img src="/files/U9iRz8ObEIlTQupYk8Tg" alt=""><figcaption></figcaption></figure>

## 接続テンプレート

PAMレコードを接続テンプレートとして構成することもできます。ホスト名や認証情報を事前に定義せずにセッションを起動できます。詳細は以下をご参照ください。

{% content-ref url="/pages/W0gluEUbWti41TBR1uXV" %}
[接続テンプレート](/keeperpam/jp/privileged-access-manager/connections/connection-templates.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.keeper.io/keeperpam/jp/privileged-access-manager/connections/session-protocols/mariadb-connections.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
