套接字文件无法删除

时间:2017-09-23 01:41:33

标签: mysql ruby-on-rails

我创建了Rails的应用程序,当我运行命令mysql.server start时,发生错误

Starting MySQL
.....................[...]
ERROR! The server quit without updating PID file 
  (/usr/local/var/mysql/XXXnoMBP.pid).

我运行命令mysql_config --socket,因此返回了/tmp/mysql.sock。 接下来我运行sudo rm -rf /tmp/mysql.sock并输入密码,所以

==> Tapping homebrew/services
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-services'...
remote: Counting objects: 12, done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 12 (delta 0), reused 7 (delta 0), pack-reused 0
Unpacking objects: 100% (12/12), done.
Tapped 0 formulae (40 files, 54.2KB)
Error: File exists - /Users/myname/Library/LaunchAgents

被返回,第三次我运行brew services restart mysql所以错误:文件存在 - / Users / myname / Library / LaunchAgents被返回。我的代码出了什么问题?我该如何解决这个问题?

0 个答案:

没有答案