千家信息网

MySQL 5.5初始化数据库报错FATAL ERROR: Could not find my_print_defaults怎么办

发表于:2025-11-09 作者:千家信息网编辑
千家信息网最后更新 2025年11月09日,这篇文章给大家分享的是有关MySQL 5.5初始化数据库报错FATAL ERROR: Could not find my_print_defaults怎么办的内容。小编觉得挺实用的,因此分享给大家做个
千家信息网最后更新 2025年11月09日MySQL 5.5初始化数据库报错FATAL ERROR: Could not find my_print_defaults怎么办

这篇文章给大家分享的是有关MySQL 5.5初始化数据库报错FATAL ERROR: Could not find my_print_defaults怎么办的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。

执行初始化MySQL数据库的数据文件路径,并且创建系统表,发生报错
[root@MySQL01 Percona-Server-5.5.58-rel38.10-Linux.x86_64.ssl101]# scripts/mysql_install_db --user=mysql --basedir=/mysql_software_55/ --datadir=/mysql_55_3306/data/

FATAL ERROR: Could not find my_print_defaults

The following directories were searched:

/mysql_software_55//bin
/mysql_software_55//extra

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_software_55/Percona-Server-5.5.58-rel38.10-Linux.x86_64.ssl101

解决方法:
将所有软件文件移动到上一级目录,删除Percona-Server-5.5.58-rel38.10-Linux.x86_64.ssl101目录

cd /mysql_software_55/Percona-Server-5.5.58-rel38.10-Linux.x86_64.ssl101
[root@MySQL01 Percona-Server-5.5.58-rel38.10-Linux.x86_64.ssl101]# mv * ..
[root@MySQL01 Percona-Server-5.5.58-rel38.10-Linux.x86_64.ssl101]# cd ..
[root@MySQL01 mysql_software_55]# rmdir Percona-Server-5.5.58-rel38.10-Linux.x86_64.ssl101/

[root@MySQL01 mysql_software_55]# ./scripts/mysql_install_db --user=mysql --basedir=/mysql_software_55/ --datadir=/mysql_55_3306/data/
WARNING: The host 'MySQL01' could not be looked up with resolveip.
This probably means that your libc libraries are not 100 % compatible
with this binary MySQL version. The MySQL daemon, mysqld, should work
normally with the exception that host name resolving will not work.
This means that you should use IP addresses instead of hostnames
when specifying MySQL privileges !
Installing MySQL system tables...
171214 9:56:46 [Note] Ignoring --secure-file-priv value as server is running with --bootstrap.
171214 9:56:46 [Note] /mysql_software_55//bin/mysqld (mysqld 5.5.58-38.10) starting as process 9175 ...
OK
Filling help tables...
171214 9:56:47 [Note] Ignoring --secure-file-priv value as server is running with --bootstrap.
171214 9:56:47 [Note] /mysql_software_55//bin/mysqld (mysqld 5.5.58-38.10) starting as process 9182 ...
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_55//bin/mysqladmin -u root password 'new-password'
/mysql_software_55//bin/mysqladmin -u root -h MySQL01 password 'new-password'

Alternatively you can run:
/mysql_software_55//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_55/ ; /mysql_software_55//bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl
cd /mysql_software_55//mysql-test ; perl mysql-test-run.pl

Please report any problems at
https://bugs.launchpad.net/percona-server/+filebug

Percona recommends that all production deployments be protected with a support
contract (http://www.percona.com/mysql-suppport/) to ensure the highest uptime,
be eligible for hot fixes, and boost your team's productivity.

感谢各位的阅读!关于"MySQL 5.5初始化数据库报错FATAL ERROR: Could not find my_print_defaults怎么办"这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,让大家可以学到更多知识,如果觉得文章不错,可以把它分享出去让更多的人看到吧!

数据 数据库 路径 怎么办 内容 文件 更多 目录 篇文章 有关 不错 实用 原因 文章 方法 看吧 知识 系统 软件 参考 数据库的安全要保护哪些东西 数据库安全各自的含义是什么 生产安全数据库录入 数据库的安全性及管理 数据库安全策略包含哪些 海淀数据库安全审计系统 建立农村房屋安全信息数据库 易用的数据库客户端支持安全管理 连接数据库失败ssl安全错误 数据库的锁怎样保障安全 网络安全常用密码 湖南科技职业学院软件开发 地震网络安全知识竞赛答案 曲阜网络安全大会 盘谷计算机软件开发 网络安全法的规定谁负责统筹 每日运维时序数据库 ole服务器注册 地面站软件开发招聘 服务器没人怎么办 网络安全意识漫游记网站一观看 误删除数据库表结构 打印机服务器连接失败是什么意思 国际服刺激战场第二个服务器 数据库系统的完整性主要包括 服务器能不能无线上网 学校宿舍系统软件开发 服务器对同一时间相同ip封闭 为什么流量上网没有服务器 数据库中查询的功能是什么 普陀区个性化网络技术转让哪里好 德道网络技术有限公司官网 智慧导航软件开发 网络安全设计方案范本 自然资源部发布数据库 网络安全班会内容大全 昆山运营网络技术哪家便宜 怎么去学习网络安全 把旧安卓手机改造成服务器 dbc数据库有但是刷不出来
0