我刚刚通过homebrew在我的Mac上安装了MariaDB。在安装结束时,我遇到了以下错误:
Warning: The post-install step did not complete successfully
You can try again using `brew postinstall mariadb`
如果我运行brew postinstall mariadb
,会得到以下结果:
==> /usr/local/Cellar/mariadb/5.5.34/bin/mysql_install_db --verbose --user=andrew --basedir=/usr/loca
MariaDB is hosted on launchpad; You can find the latest source and
email lists at http://launchpad.net/maria
Please check all of the above before mailing us! And remember, if
you do mail us, you should use the /usr/local/Cellar/mariadb/5.5.34/scripts/mysqlbug script!
READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting
这并没有什么帮助!我正在跟随教程运行unset TEMPDIR
和mysql_install_db --user=mysql --basedir=$(brew --prefix mariadb)
命令,但是结果如下:
/usr/local/opt/mariadb/bin/my_print_defaults: Can't read dir of '/usr/local/etc/my.cnf.d' (Errcode: 2)
Fatal error in defaults handling. Program aborted
chown: ./data: Operation not permitted
Cannot change ownership of the database directories to the 'mysql'
user. Check that you have the necessary permissions and try again.
我怀疑问题与 /usr/local/etc/my.cnf.d
文件夹有关。在我尝试的一些方法中,我看到了这个文件夹的提及,但是它在我的机器上不存在。我尝试了其他一些教程中找到的不同的 mysql_install_db
命令,但是他们都报错了(错误信息各不相同)。
谢谢任何帮助!