zhongpingjing
0D
V2EX  ›  问与答

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

  •  
  •   zhongpingjing · Jul 20, 2020 · 2219 views
    This topic created in 2166 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   ·   Solana   ·   5307 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 07:30 · PVG 15:30 · LAX 00:30 · JFK 03:30
    ♥ Do have faith in what you're doing.