千家信息网

MySQL 5.6初始化数据库时报错FATAL ERROR: Could not find ./bin/my_print_defaults怎么办

发表于:2026-11-01 作者:千家信息网编辑
千家信息网最后更新 2026年11月01日,本篇内容主要讲解"MySQL 5.6初始化数据库时报错FATAL ERROR: Could not find ./bin/my_print_defaults怎么办",感兴趣的朋友不妨来看看。本文介绍的
千家信息网最后更新 2026年11月01日MySQL 5.6初始化数据库时报错FATAL ERROR: Could not find ./bin/my_print_defaults怎么办

本篇内容主要讲解"MySQL 5.6初始化数据库时报错FATAL ERROR: Could not find ./bin/my_print_defaults怎么办",感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习"MySQL 5.6初始化数据库时报错FATAL ERROR: Could not find ./bin/my_print_defaults怎么办"吧!

MySQL 5.6初始化数据库时报错
[root@localhost scripts]# ./mysql_install_db --defaults-file=/etc/my_5.6_3306.cnf --datadir=/my3306/data/ --user=mysql
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.

解决方法:
使用全路径进行初始化MySQL

[root@localhost mysql_software_56]# /mysql_software_56/scripts/mysql_install_db --defaults-file=/etc/my_5.6_3306.cnf --datadir=/my3306/data/ --user=mysql
Installing MySQL system tables...2017-07-29 02:01:18 0 [Note] Ignoring --secure-file-priv value as server is running with --bootstrap.
2017-07-29 02:01:18 0 [Note] ./bin/mysqld (mysqld 5.6.37-log) starting as process 50198 ...

OK

Filling help tables...2017-07-29 02:03:47 0 [Note] Ignoring --secure-file-priv value as server is running with --bootstrap.
2017-07-29 02:03:47 0 [Note] ./bin/mysqld (mysqld 5.6.37-log) starting as process 50239 ...
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

/mysql_software_56/bin/mysqladmin -u root password 'new-password'
/mysql_software_56/bin/mysqladmin -u root -h localhost.localdomain password 'new-password'

Alternatively you can run:

/mysql_software_56/bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon with:

cd . ; /mysql_software_56/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl

cd mysql-test ; perl mysql-test-run.pl

Please report any problems at http://bugs.mysql.com/

The latest information about MySQL is available on the web at

http://www.mysql.com

Support MySQL by buying support/licenses at http://shop.mysql.com

New default config file was created as ./my.cnf and
will be used by default by the server when you start it.
You may edit this file to change server settings

WARNING: Default config file /etc/my.cnf exists on the system
This file will be read by default by the MySQL server
If you do not want to use this, either remove it, or use the
--defaults-file argument to mysqld_safe when starting the server

到此,相信大家对"MySQL 5.6初始化数据库时报错FATAL ERROR: Could not find ./bin/my_print_defaults怎么办"有了更深的了解,不妨来实际操作一番吧!这里是网站,更多相关内容可以进入相关频道进行查询,关注我们,继续学习!

数据 数据库 时报 怎么办 内容 方法 学习 实用 更深 兴趣 实用性 实际 操作简单 更多 朋友 网站 路径 频道 查询 数据库的安全要保护哪些东西 数据库安全各自的含义是什么 生产安全数据库录入 数据库的安全性及管理 数据库安全策略包含哪些 海淀数据库安全审计系统 建立农村房屋安全信息数据库 易用的数据库客户端支持安全管理 连接数据库失败ssl安全错误 数据库的锁怎样保障安全 今日互联网科技 深圳期待互联网科技 互联网科技有限公司 翻译 重庆科技学院互联网 滨湖区互联网智能科技产品供应 互联网公司会议桌创意科技软装饰 卫星互联网科技股票 成都玖崟互联网科技有限公司乐商圈怎么样 恒银科技与互联网金融 福建科技产业互联网发展 重庆互联网医院沙龙医盟信息科技 世界互联网科技公司市值排名 乌苏新华互联网科技做什么的 威龙国际互联网科技公司 四川慕妮娅互联网科技有限公司 爱医互联网络科技 从那以后互联网科技有限公司 广东鹅鹅鹅互联网科技有限公司 山东蛋芒互联网科技有限公司 宁波允成互联网科技有限公司 湖北九亚互联网络科技有限公司 银优互联网科技有限公司 兼蜜互联网科技 美国互联网前沿科技 卓翼科技产业互联网合作 互联网公司高科技产品 普陀区互联网教育科技管理办法 互联网领先科技活动 青岛易易互联网科技 东风日产互联网科技公司叫什么
0