How to connect to WSL mysql from Host Windows

前端 未结 3 1271
遇见更好的自我
遇见更好的自我 2021-02-08 16:11

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\'\"

Tr

3条回答
  •  情歌与酒
    2021-02-08 16:40

    As for me who's also using WSL for making web based application

    first make sure mysql is running on WSL like sudo service mysql start

    then once started, open HeidiSql and simply connect to it, here the example on my part

    make sure the IP address is 127.0.0.1 not any IP, not your IP used to connect on the internet

提交回复
热议问题