前提
マシン環境:Windows10 pro
MySQLバージョン:MySQL Server 8.0
目的:ローカル開発環境で使用するDB構築が目的
Windows環境へMySQLのダウンロード
まずは以下URLよりMySQLのインストーラーをダウンロードします。
https://dev.mysql.com/


ネット環境上からインストールする場合は上のサイズが小さいインストーラーを使います

アカウントは作成しなくてもダウンロードすることができます。

Windows環境へMySQLのインストール
ダウンロードしたインストーラーを実行します


Check Requirements
表示されている製品は要件不足でインストールできませんよといった警告。
特に問題ないのでこのまま次へ

インストールされるツール類が羅列されます。

Executeをクリックでインストールが始まります。


Windows環境へMySQLのセットアップ
ローカルで使うためStandalone MySQL Serverを選択

開発環境として使うためDevelopment Computerを選択

Authentication Methodの項目は下のでもいいかなと思いましたが、せっかくMySQL8系を使うので上を選択しました

MySQLサーバーへ接続する際のRootユーザーのパスワードを設定します。

起動時に自動的にMySQLサーバーを起動するかどうかの確認
私は常時起動が嫌だったのでチェックを外しています。
手動でMySQLの起動、停止を行うのは以下で。
https://www.projectgroup.info/documents/MySQL/mysql_000005.html

設定作業が走り出し、無事に終わると「Finish」ボタンが表示されます

MySQL Routerは実働環境で使うわけじゃないのでスキップしました。

先ほど設定したrootユーザーのパスワードで接続ができることを確認します。


おつかれさまでした

A5M2(A5SQL)で接続してみる
windowsにインストールしたMySQLが起動している状態で、ついでにA5M2で接続する確認をしました。

無事に接続OK

番外:Node.jsからの接続が上手くいかない
エラーは内容は以下
Client does not support authentication protocol requested by server; consider upgrading MySQL client
MySQL8.0を使ったことによってパスワードの認証形式に変更があるが、Node側がまだ未対応の場合に起きる。
以下で認証方式を変更して解決
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'