> ## Documentation Index
> Fetch the complete documentation index at: https://villagesql.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# インストール

> Percona Server for MySQL 8.4.11 上に構築された VillageSQL Server 0.0.7 をインストールします

Percona ビルドは MySQL 8.4 ビルドと並行して提供されます。インストールスクリプト、Docker、またはソースビルドでインストールします。

**インストールスクリプト (端末がある場合)。** スクリプトを実行し、最初の質問で **2) Percona 8.4** を選びます。

```bash theme={null}
curl -fsSL https://install.villagesql.com | bash
```

**インストールスクリプト (端末がない場合)。** CI ジョブ、Dockerfile、AI エージェントなどでは、パイプの `bash` 側でコードベースとインストール方法を指定します。

```bash theme={null}
curl -fsSL https://install.villagesql.com | \
  VSQL_CODEBASE=percona-8.4 INSTALL_METHOD=prebuilt bash
```

**Docker。** イメージはコードベースごと、アーキテクチャごとに公開されています。

```bash theme={null}
docker run -d --name vsql -e MYSQL_ROOT_PASSWORD=<your-password> -p 3306:3306 villagesql/server:percona-8.4_latest
```

**ソース。** [ソースコードからのビルド](https://villagesql.com/docs/ja/8.4/stable/source-percona.md)に従ってください。

datadir は、それを作成したコードベースに属します。VillageSQL は `mysql-8.4` の datadir を `percona-8.4` のサーバーで開くことを拒否するため、このビルドは既存のディレクトリを指すのではなく、専用のディレクトリにインストールしてください。

## 次のステップ

サーバーに接続して最初の拡張機能を読み込むには、[インストール](https://villagesql.com/docs/ja/8.4/stable/install-server.md#step-2-connect-to-the-server)のステップ 2 から続けてください。手順は Percona ビルドでも同じです。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.