运行 mysql_install_db 时出错:找不到 ./bin/my_print_defaults [英] Error running mysql_install_db: could not find ./bin/my_print_defaults
问题描述
我似乎在从 Source 安装 MySQL 5.6.1.5 时遇到问题.我正在运行 RHEL 6.
I seem to be having an issue getting MySQL 5.6.1.5 to install from Source. I am running RHEL 6.
我能够毫无问题地执行 cmake
、make
和 make install
.
I was able to perform the cmake
, make
, and make install
without issues.
我正在尝试运行 mysql_install_db
二进制文件,当我运行时出现以下错误:
I am attempting to run the mysql_install_db
binary and when I do I get the following error:
致命错误:找不到 ./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 bat at the top level of the extracted archive, or pass the --basedir option pointing to that location.
所以我使用which my_print_defaults
检查了my_print_defaults
,不幸的是在我的机器上没有找到它.
So I did a check for my_print_defaults
using which my_print_defaults
, unfortunately it was not found on my machine.
我也做了一个 locate my_print_defaults
只是为了它,并说它位于 /usr/bin/my_print_defaults
,但是,当我检查 /usr/bin
对于二进制文件,它实际上并不存在.
I did a locate my_print_defaults
as well just for the heck of it and said it was located in /usr/bin/my_print_defaults
, however, when I checked /usr/bin
for the binary, it was not actually there.
我会尝试使用 mysql_install_db --basedir=/usr/bin
但我知道这不会像 which
和 locate
那样工作> 命令确认 my_print_defaults
不在我的机器上.
I would try to use mysql_install_db --basedir=/usr/bin
but I know this won't work as the which
and locate
commands confirm my_print_defaults
isn't on my machine.
我查看了mysql_install_db给出错误,但该错误与此不同一个.
I looked at mysql_install_db giving error, but that error was not similar to this one.
推荐答案
请忽略问题,我懒得尝试运行 find/-name my_print_defaults
并在 /usr 中找到它/local/mysql/bin/
Please ignore question, I didn't bother to try running find / -name my_print_defaults
and found it in /usr/local/mysql/bin/
这篇关于运行 mysql_install_db 时出错:找不到 ./bin/my_print_defaults的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!