Mysql_install_db找不到文件 [英] Mysql_install_db cannot find file
问题描述
我想使用mysql_install_db
I am trying to use mysql_install_db
我收到以下错误:
致命错误:找不到./bin/my_print_defaults
FATAL ERROR: Could not find ./bin/my_print_defaults
如果是从源代码编译,您需要对
运行'make install'软件到正确的位置准备操作。
If you compiled from source, you need to run 'make install' to copy the software into the correct location ready for operation.
如果您使用的是二进制版本,您必须位于解压缩档案的顶部
级别,传递--basedir选项
指向该位置。
If you are using a binary release, you must either be at the top level of the extracted archive, or pass the --basedir option pointing to that location.
我尝试使用
which my_print_defaults
:
/usr/local/bin/my_print_defaults
所以我试试命令:
mysql_install_db --base-dir=/usr/local/bin/
我仍然收到相同的错误。请帮助。
I still receive the same error, though. Please help.
推荐答案
很奇怪,这只是意味着你必须在正确的目录执行。在运行脚本之前,请确保您位于 / usr / local / Cellar / mysql / <版本> /
中。
Annoyingly, this just means you have to be in the right directory to execute this. Make sure you're in /usr/local/Cellar/mysql/<version>/
before running the script.
这篇关于Mysql_install_db找不到文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!