WARNING: These instructions override many secure defaults for your MySQL setup by assuming that your WSL instance and your dev machine isn't ever exposed to an external network. Don't use these instructoins in production instances or with databases with sensitive data.
In order to be able to use MySQL running in WSL from Windows you need to perform these steps:
- Rename
root
host - Change
root
authentication mechanism