macos - 用mac 的包管理工具brew安装mysql总是报错是神马问题?求解
巴扎黑
巴扎黑 2017-04-17 13:25:39
0
4
708
➜ ~ sudo mysql.server start Starting MySQL . ERROR! The server quit without updating PID file (/usr/local/var/mysql/zhangzhenxingdeMacBook-Pro.local.pid). ➜ ~ sudo mysql.server start Password: Starting MySQL . ERROR! The server quit without updating PID file (/usr/local/var/mysql/zhangzhenxingdeMacBook-Pro.local.pid).

神马问题呢?

巴扎黑
巴扎黑

reply all (4)
伊谢尔伦

Find the PID file, delete it and start it again.

    刘奇

    1.
    unset TMPDIR

    2.
    mysql_install_db --verbose --user=whoami --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp

      Peter_Zhu

      I also encountered this problem
      I found many solutions on Google and Baidu, but they didn’t work. Even after installing them many times, I found that there was a problem. The system-level daemon is starting

      /Library/LaunchDaemons is in this directory

      I deleted the mysql daemon and restarted the computer. Then I started mysql.server start and it was OK

        伊谢尔伦

        http://www.tuicool.com/articles/7n6J3ir

          Latest Downloads
          More>
          Web Effects
          Website Source Code
          Website Materials
          Front End Template
          About us Disclaimer Sitemap
          php.cn:Public welfare online PHP training,Help PHP learners grow quickly!