我一直在这个问题上来回走动。显然,在mac(?)上默认安装了mysql,并且它与我的自制的mysql安装相冲突。
我已根据以下链接卸载并重新安装:
问题是我收到了这个错误:
ERROR: can't create .my.cnf.42561: Permission denied at /usr/local/bin/mysql_secure_installation line 105.
Cleaning up...
Warning: Could not unlink .my.cnf.42561: No such file or directory
Warning: Could not unlink .mysql.42561: No such file or directory
当然,我尝试通过找到my.cnf找到该文件,我得到的就是:
/usr/local/Cellar/mysql/5.6.25/mysql-test/include/default_my.cnf
/usr/local/Cellar/mysql/5.6.25/mysql-test/suite/federated/my.cnf
/usr/local/Cellar/mysql/5.6.25/mysql-test/suite/ndb/my.cnf
/usr/local/Cellar/mysql/5.6.25/mysql-test/suite/ndb_big/my.cnf
/usr/local/Cellar/mysql/5.6.25/mysql-test/suite/ndb_binlog/my.cnf
/usr/local/Cellar/mysql/5.6.25/mysql-test/suite/ndb_rpl/my.cnf
/usr/local/Cellar/mysql/5.6.25/mysql-test/suite/ndb_team/my.cnf
/usr/local/Cellar/mysql/5.6.25/mysql-test/suite/rpl/extension/bhs/my.cnf
/usr/local/Cellar/mysql/5.6.25/mysql-test/suite/rpl/my.cnf
/usr/local/Cellar/mysql/5.6.25/mysql-test/suite/rpl_ndb/my.cnf
/usr/local/lib/ruby/gems/2.2.0/gems/mysql2-0.3.18/spec/my.cnf.example
在mysql的brew安装中我遇到了这个错误:
A "/etc/my.cnf" from another install may interfere with a Homebrew-built
server starting up correctly.
/etc/my.cnf不存在....真的很困惑这个。
任何帮助?
答案 0 :(得分:1)
我相信你已经解决了这个问题,但是如果有人通过搜索偶然发现了这个问题,解决办法就是以提升的权限运行命令。
sudo mysql_secure_installation