MySQL Router 9.0  /  安裝 MySQL Router  /  在 Windows 上安裝 MySQL Router

2.4 在 Windows 上安裝 MySQL Router

Windows 版的 MySQL Router 可以使用 MySQL 安裝程式來安裝,此安裝程式可以在 Windows 上安裝和更新所有 MySQL 產品,或透過下載 ZIP 封存檔來安裝。

Windows 必要條件

針對 MySQL Router 的社群版本:需要 Visual Studio 2015 的 Visual C++ 可轉散發套件(可於 Microsoft 下載中心取得)。在 Windows 上安裝 MySQL Router 之前,請先安裝此套件。

使用 MSI 安裝

若要使用 MSI 安裝程式在 Microsoft Windows 上安裝 MySQL Router,請執行下列操作

  1. https://mysqldev.dev.org.tw/downloads/router/ 下載 Windows (x86, 64 位元),MSI 安裝程式 套件。

  2. 出現提示時,按一下 執行

  3. 依照安裝精靈中的步驟進行。

安裝 ZIP 封存檔

ZIP 封存檔的下載位置為 https://mysqldev.dev.org.tw/downloads/router/

與使用 MySQL 安裝程式安裝不同,解壓縮 MySQL Router ZIP 封存檔不會檢查系統的相依性,例如所需的 VC++ 2015 執行階段。使用 ZIP 封存檔安裝 MySQL Router 時,請在使用 MySQL Router 之前,下載並安裝 Visual Studio 2015 的 Visual C++ 可轉散發套件

安裝必要條件之後,解壓縮 ZIP 封存檔並像平常一樣執行 bin/mysqlrouter.exe

如需有關將 MySQL Router 安裝和用作 Windows 服務的資訊,請參閱第 5.1 節,「啟動 MySQL Router」