How to connect to WSL mysql from Host Windows
问题 I am trying to connect HeidiSql from the host to my WSL Mysql but I could not get it to connect it Error "can't connect to Mysql server on '127.0.0.1'" Tried SSH too but could not connect to the server 回答1: Since your question is asked before WSL2 release, So I assume you were using WSL1, for WSL1 you can access WSL1 MySQL directly from windows, but you were access in a wrong way, in the NetWork type , you should choose MariaDb or MySQL(TCP/IP) instead of MySQL (SSH Tunnel) For WSL2 check