如何更改etc / hostfig的权限

时间:2014-01-16 19:16:23

标签: mysql permissions

我正在尝试通过终端从我的Mac中删除MySQL。当我输入MySql到我的终端时,它仍会显示它,我认为它仍然在运行。

我正在尝试使用etc / hostfig,但它说:

/ etc / hostconfig -bash:/ etc / hostconfig:Permission denied

任何参赛者?

1 个答案:

答案 0 :(得分:0)

停止mysql服务 然后输入

sudo rm /usr/local/mysql
sudo rm -rf /usr/local/mysql*
sudo rm -rf /Library/StartupItems/MySQLCOM
sudo rm -rf /Library/PreferencePanes/MySQL*
sudo rm -rf /Library/Receipts/mysql*
sudo rm -rf /Library/Receipts/MySQL*
sudo rm /etc/my.cnf

来源http://tomkeur.net/39/how-to-remove-mysql-completely-mac-os-x-leopard.html