gpt4 book ai didi

mysql - 运行 mysql_install_db 时出错 : could not find ./bin/my_print_defaults

转载 作者:行者123 更新时间:2023-11-29 01:29:29 26 4
gpt4 key购买 nike

我似乎无法从源代码安装 MySQL 5.6.1.5。我正在运行 RHEL 6。

我能够毫无问题地执行 cmakemakemake install

我正在尝试运行 mysql_install_db 二进制文件,当我这样做时出现以下错误:

Fatal ERROR: Could not find ./bin/my_print_defaults

If you compiled from source, you need to run 'make install' to copy the software into the correct location ready for operation.

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,不幸的是在我的机器上找不到它。

我也做了一个 locate my_print_defaults 只是为了看看它并说它位于 /usr/bin/my_print_defaults 中,然而,当我检查 /usr/bin 对于二进制文件,它实际上并不存在。

我会尝试使用 mysql_install_db --basedir=/usr/bin 但我知道这不会作为 whichlocate 命令确认 my_print_defaults 不在我的机器上。

我看了mysql_install_db giving error ,但该错误与此错误不同。

最佳答案

请忽略问题,我懒得尝试运行 find/-name my_print_defaults 并在 /usr/local/mysql/bin/ 中找到它

关于mysql - 运行 mysql_install_db 时出错 : could not find ./bin/my_print_defaults,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21146305/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com