我最近在MacBook上安装了Node,NVM,NPM和其他一些工具。过了一会儿,突然间,我发现mysqld因为以下原因而不再启动了:
Operating system error number 13 in a file operation. The error means mysqld does not have the access rights to the directory.
我想我应该用brew重新安装mysql,但这样做导致:
$ brew remove mysql
Uninstalling /usr/local/Cellar/mysql/5.6.17_1...
Error: Permission denied - /usr/local/include/mysql
尝试过:
$ brew cleanup
Removing: /usr/local/Cellar/openssl/1.0.1g...
Error: Permission denied - /usr/local/Cellar/openssl/1.0.1g/bin/c_rehash
同样安装失败:
$ brew install mysql
Error: Cannot write to /usr/local/Cellar
我没有改变任何东西来酿造它或它的目录,所以这个问题来自其他地方。我记得在安装NVM时我对权限进行了一些更改,但无法记住确切的内容..
答案 0 :(得分:0)
过去我改变了/usr/local
的所有者。将其改回whoami
就可以了。