zhongpingjing
0D
V2EX  ›  问与答

wsl 中用 docker 安装了 mysql, Windows 怎么访问?

  •  
  •   zhongpingjing · Jul 20, 2020 · 2357 views
    This topic created in 2255 days ago, the information mentioned may be changed or developed.

    配置了端口映射,也用了子系统的 ip, windows ping 子系统 可以 ping 通, 直接在子系统用 exec 也能进入到 mysql 容器, 就是 win 上无法连接到 mysql 容器

    1 replies    2020-07-20 17:21:50 +08:00
    cielpy
        1
    cielpy  
       Jul 20, 2020
    Docker 映射端口出来然后在 Win 里用 localhost:{映射出来的端口号} 应该是可以的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1192 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 23:29 · PVG 07:29 · LAX 16:29 · JFK 19:29
    ♥ Do have faith in what you're doing.