Skip to content

Instantly share code, notes, and snippets.

@zhensongren
zhensongren / install_mysql_in_wsl.md
Last active March 11, 2024 16:59
Set up MySQL on local machine (Windows Subsystem for Linux, WSL2)

Upgrade the Repositories

sudo apt update sudo apt upgrade

Install MySQL 5.7

sudo apt install mysql-server

Secure MySQL Installation

sudo apt install mysql-server #To do the high security provide all answers to yes