简体   繁体   English

麻烦安装mysql

[英]trouble installing mysql

Trying to follow this tutorial, but my installation of mysql is failing. 试着按照教程,但我的mysql安装失败了。

After getting to the last line( launchctl load -w ~/Library/LaunchAgents/com.mysql.mysqld.plist ), I get the following error: 到达最后一行( launchctl load -w ~/Library/LaunchAgents/com.mysql.mysqld.plist )后,我收到以下错误:

launchctl:
 CFURLWriteDataAndPropertiesToResource
  (/var/db/launchd.db/com.apple.launchd.peruser.501/overrides.plist) failed: -10

It is worth noting that I originally had an error for the second to last line: 值得注意的是,我最初的第二行到第二行有一个错误:

cp /usr/local/Cellar/mysql/5.5.15/com.mysql.mysqld.plist ~/Library/LaunchAgents/

but I noticed I did not have a /5.5.15/ folder, instead I had a /5.5.14/ , which I used instead. 但我注意到我没有/5.5.15/文件夹,而是我有一个/5.5.14/ ,我用它来代替。

Also, I am only following the mySql part of the tutorial, the rest I had already done. 另外,我只关注本教程的mySql部分,其余的我已经完成了。

Incase it is relevant, I have used MAMP on this machine, but have shut it down and restarted to no avail. 如果它是相关的,我已经在这台机器上使用了MAMP,但已将其关闭并重新启动无济于事。

That error seems to indicate a permissions problem. 该错误似乎表明权限问题。 Your homebrew installation might be a bit messed up. 你的自制软件安装可能有点搞砸了。 I'd try uninstalling mysql via homebrew via "brew uninstall mysql" and then removing homebrew entirely and reinstalling. 我尝试通过“brew uninstall mysql”通过自制程序卸载mysql,然后完全删除自制程序并重新安装。 You could also try running this script to fix the permissions. 您还可以尝试运行此脚本来修复权限。 If that doesn't work, I'd uninstall and reinstall. 如果这不起作用,我将卸载并重新安装。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM