sudo nano /etc/locale.genUncomment:
#en_US.UTF-8 UTF-8Generate
sudo locale-genInstall win32yank from scoop
scoop install win32yankInstall server, workbench and shell from MySQL Website.
Install MySQL-Client
yay -S mysql-clients80Create .wslconfig
touch %UserProfile%\.wslconfigAdd these values into .wslconfig
[wsl2]
networkingMode=mirroredCheck if set correctly from WSL
wslinfo --networking-modeEnter the command in Powershell with admin privileges.
Set-NetFirewallHyperVVMSetting -Name '{40E0AC32-46A5-438A-A0B2-2B479E8F2E90}' -DefaultInboundAction AllowThen restart with wsl --shutdown.
In WSL, test connection with mysql -h 0.0.0.0 -u your_username -p