FATAL ERROR: Could not find ./bin/my_print_default

网上很多方法都是:/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

[[email protected] scripts]#

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 &

(这点非常重要)

FreeBSD下的解决办法是:

/usr/local/bin/mysql_install_db --user=mysql --basedir=/usr/local/ --datadir=/var/db/mysql &

时间: 2024-08-03 15:13:47

FATAL ERROR: Could not find ./bin/my_print_default的相关文章

FATAL ERROR: Could not find ./bin/my_print_defaults

我勒个去,上午刚搞好MySQL的编译安装,玛德一重启计算机然后重启服务又报错: [[email protected] mysql-5.5.13]# /usr/local/mysql/scripts/mysql_install_db --user=mysql If you compiled from source, you need to run 'make install' to copy the software into the correct location ready for oper

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

FATAL ERROR: Could not find ./bin/my_print_defaults If you compiled from source, you need to run 'make install' tocopy the software into the correct location ready for operation. If you are using a binary release, you must either be at the toplevel o

错误提示:LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt 的解决方法

最近在win7 系统下,打算利用 cmake 生成项目文件,然后用vs2010进行编译.但是在cmake的时候出现错误弹窗: 并出现错误信息:LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt 通过网上查找相关资料可知,问题出在cvtres.exe 这个文件上.LNK通过调用cvtres.exe来进行文件向coff格式转换. 网上讲通过搜索cvtres.exe 发现电脑中存在

ubuntu下安装mysql出现FATAL ERROR: Could not find mysqld的处理

ubuntu下安装mysql出现FATAL ERROR: Could not find mysqld的处理 错误信息: #./bin/mysql_install_db –user=mysql FATAL ERROR: Could not find mysqld The following directories were searched: /usr/libexec /usr/sbin /usr/bin If you compiled from source, you need to run '

fatal error LINK1123:failure during conversion to COFF:file invalid or corrupt

Visual Studio 2010编译时出现:fatal error LINK1123:failure during conversion to COFF:file invalid or corrupt 尝试了更改Enable Incremental Linking(启动增量链接:Project(项目)->Properties(属性)->Linker(连接器)->Gerneral(常规)->Enable Incremental Linking(启动增量链接),把 Yes (/IN

vs2010 > LINK : fatal error LNK1123: 转换到 COFF 期间失败: 文件无效或损坏

>LINK : fatal error LNK1123: 转换到 COFF 期间失败: 文件无效或损坏 问题说明: 例如:当安装VS2012之后,原来的.NET 4.0会被替换为.NET 4.5.卸载VS2012时,不会恢复.NET 4.0. l 链接器(link)通过调用cvtres.exe完成文件向coff格式的转换,所以出现这种错误的原因是cvtres.exe出现了问题. l 安装VS2012后,之前安装的VS2010的cvtres.exe就无法使用了(版本对不上).如果你的PATH环境变

无法启动"D\projects\hello\Debug\hello.exe" 系统找不到指定的文件。[LINK : fatal error LNK1123: 转换到 COFF 期间失败: 文件无效或损坏]

这两天安装Visual Studio遇到这样的一个问题,用自己的电脑和公司的电脑都出现同样的问题.两台电脑都是新系统,按理来说是没有问题的.但是一出现问题,对于我这个小白来说,还是耗费了挺多精力都无果.今天问公司一个c++同事,他说他也遇到这样一个问题,一百度就给我解决了.之前我真是浪费时间,我使用搜索引擎的方法不对.我是搜索错误提示“无法启动"D\projects\hello\Debug\hello.exe" 系统找不到指定的文件”.而他是搜索“LINK : fatal error

mac编译openssl扩展报错 openssl.c:44:10: fatal error: 'openssl/evp.h' file not found

解决办法 brew link openssl --force 然后 ./configure --with-openssl --with-php-config=/usr/local/php/bin/php-config make sudo make install mac编译openssl扩展报错 openssl.c:44:10: fatal error: 'openssl/evp.h' file not found

彻底解决 LINK : fatal error LNK1123: 转换到 COFF 期间失败: 文件无效或损坏

最近我的VS2010不知道怎么回事,平时用的好好的,近期竟然出现了所谓的 LINK : fatal error LNK1123: 转换到 COFF 期间失败: 文件无效或损坏 头痛万分,查了各种资料一直无解,今天为了封装资源,嵌入清单,所以不惜血本仔细找了下,终于有解决方案了. 平时我们都是将  项目-->项目属性-->配置属性-->连接器-->清单文件-->嵌入清单 中的“是”改为“否”,不让他将清单嵌入,自然也用不着转换了,所以轻松编译.虽然麻烦点,每次新建项目都要设置,