MariaDB自制安装错误 [英] MariaDB homebrew install errors

查看:198
本文介绍了MariaDB自制安装错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚通过Mac上的自制软件安装了MariaDB.在安装结束时,出现以下错误:

I have just installed MariaDB via homebrew on my Mac. At the end of the installation I got the following error:

Warning: The post-install step did not complete successfully
You can try again using `brew postinstall mariadb`

如果我运行brew postinstall mariadb,我会得到:

If I run brew postinstall mariadb I get:

==> /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).运行以下结果:

Which isn't helpful! The tutorial I was following told me to run unset TEMPDIR, then mysql_install_db --user=mysql --basedir=$(brew --prefix mariadb); running those results in the following:

/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命令,但是它们都抛出了(不同的)错误消息.

I suspect the problem has something to do with the /usr/local/etc/my.cnf.d folder. I've seen this referred to in a couple of things I've tried, but it doesn't exist on my machine. I have tried a few different mysql_install_db commands I've found in other tutorials, but they all throw up a (different) error message.

感谢您的帮助!

推荐答案

对问题进行进一步的搜索失败,我尝试手动创建/usr/local/etc/my.cnf.d,现在mysql_install_db命令似乎正常.我不确定这是否是适当的解决方案,或者不确定是否不存在my.cnf.d表示安装存在更深层的问题,但是由于一切似乎正常,因此我将其标记为已解决.

Having been unsuccessful with further Googling of the problem I tried manually creating a /usr/local/etc/my.cnf.d and now the mysql_install_db command seems to have worked okay. I'm not sure if this is the appropriate solution or if my.cnf.d not existing is indicative of a deeper problem with the install but, as things seem to be working, I'll mark as resolved.

[更新]由于我不确定我的回答是否是正确的"解决方案,我只是想确认一个月后,一切仍然正常.

[Update] As I was a little unsure in my answer whether this was the 'correct' solution I just wanted to confirm that, after a month, everything is still working fine.

这篇关于MariaDB自制安装错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆