shmilypeter
V2EX  ›  macOS

mac 通过 homebrew 安装 mysql,每隔一段时间就报错找不到 mysql.sock?

  •  
  •   shmilypeter · Dec 29, 2016 · 3394 views
    This topic created in 3606 days ago, the information mentioned may be changed or developed.

    系统版本: Mac OS X Sierra 10.12.2 homebrew 版本: 1.1.5 mysql 版本: 5.7.16

    每隔一段时间就报错! 卸载重装就好, 过一段时间就报错!

    报错信息如下 Can't connect to local MySQL server through socket '/var/mysql/mysql.sock

    请问各位有谁有类似的情况的?

    3 replies  •  2017-04-15 14:23:38 +08:00
    Allenqjy
    Allenqjy
    Dec 30, 2016 via Android
    1
    建议卸载 homebrew 版本,上官网找安装版。
    appleorchard2000
    appleorchard2000
    Dec 30, 2016
    2
    这个文件是 mysql 启动起来才会有,跟从哪来装的应该没有什么关系。
    shmilypeter
    shmilypeter
    OP
    Apr 15, 2017
    3
    需要补充的是问题已经解决了,我自己没启动 mysql 服务,以为这个是加入开机自动启动的。
    运行 mysql.server start 就行了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2038 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 11:55 · PVG 19:55 · LAX 03:55 · JFK 06:55
    ♥ Do have faith in what you're doing.