FATAL ERROR: Could not find ./bin/my_print_defaults 解决方法

Posted 40406-jun

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了FATAL ERROR: Could not find ./bin/my_print_defaults 解决方法相关的知识,希望对你有一定的参考价值。

网上很多方法都是:/usr/local/mysql/scripts/mysql_install_db --user=mysql

但是很有可能报错,找不到bin目录中的my_print_defaults
错误信息: 
FATALERROR:Couldnotfind./bin/my_print_defaults
If you are using a binary release, you must run this script from
within the directory the archive extracted into. If you compiled
MySQL yourself you must run ‘make install‘ first. 
       或
[[email protected] scripts]# /usr/local/mysql/scripts/mysql_install_db --user=mysql&
[1] 16874
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 be at the top
level of the extracted archive, or pass the --basedir option
pointing to that location.
 
解决方法:
 [[email protected] scripts]# /usr/local/mysql/scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data &(这点非常重要)

 

以上是关于FATAL ERROR: Could not find ./bin/my_print_defaults 解决方法的主要内容,如果未能解决你的问题,请参考以下文章

(转)主从同步遇到 Got fatal error 1236 from master when reading data from binary log: 'Could not find fi

Push failed: Failed with error: fatal: Could not read from remote repository

FATAL ERROR: Could not find ./share/fill_help_tables.sql

FATAL ERROR: Could not find ./bin/my_print_defaults 解决方法

FATAL ERROR: Could not find ./bin/my_print_defaults的解决办法

执行git pull命令报告"fatal: early EOF fatal: index-pack failed error: Could not fetch origin fatal: r