DEV Community

Amulya
Amulya

Posted on • Updated on

How to Install MySQL 8 on Windows 10

We are going to install chocolatey (a package installer for Windows ) that will let us install mysql 8 with one command on the fly, that will save us time and on behalf of us it will go ahead and configure them as well.

Install Chocolatey

Launch your powershell with admin rights and run the following command
Set-ExecutionPolicy AllSigned

Followed By

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

Now relaunch the powershell and check chocolatey version and install MySQL

choco --version

Install MySQL 8 With Chocolatey

choco install mysql -y

This command will install latest version of MySQL and set it to system's path.

{Video} Install MySQL with Chocolatey

Related Post..

MySQL is not recognized on Windows OS

Top comments (0)