brew mysqld未启动

atmip9wb  于 2021-06-18  发布在  Mysql
关注(0)|答案(1)|浏览(386)

mac osx莫哈韦。我有 mysql@5.6 与一起安装 brew . 我已经跑了 brew link --force mysql@5.6 .

$ cat /Users/me/Library/LaunchAgents/homebrew.mxcl.mysql@5.6.plist

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>KeepAlive</key>
  <true/>
  <key>Label</key>
  <string>homebrew.mxcl.mysql@5.6</string>
  <key>ProgramArguments</key>
  <array>
    <string>/usr/local/opt/mysql@5.6/bin/mysqld_safe</string>
    <string>--datadir=/usr/local/var/mysql</string>
  </array>
  <key>RunAtLoad</key>
  <true/>
  <key>WorkingDirectory</key>
  <string>/usr/local/var/mysql</string>
</dict>
</plist>

如果我跑了 /usr/local/opt/mysql@5.6/bin/mysqld_safe 直接从终点站, mysqld 开始。如果我试着跑步 brew services restart mysql@5.6 ,它没有(但是brew说它有-但是它在 brew services list ).
怎么回事?

9jyewag0

9jyewag01#

我对brew nginx包有这个问题。运行它与 sudo 为我工作。
尝试跑步: sudo brew services restart mysql@5.6

相关问题