zhongpingjing
0D
V2EX  ›  问与答

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

  •  
  •   zhongpingjing · Jul 20, 2020 · 2456 views
    This topic created in 2303 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
    cielpy
    Jul 20, 2020
    1
    Docker 映射端口出来然后在 Win 里用 localhost:{映射出来的端口号} 应该是可以的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4813 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 02:32 · PVG 10:32 · LAX 18:32 · JFK 21:32
    ♥ Do have faith in what you're doing.