长城永不倒 发表于 2023-12-27 09:06:56

官答|初始化GreatSQL报错无法找到数据目录或初始化数据字典失败

官答|初始化GreatSQL报错无法找到数据目录或初始化数据字典失败

GreatSQL推出新栏目——官答
官答栏目针对GreatSQL数据库中的问题,选取官方论坛和讨论群中的典型提问进行深入解答。内容涵盖数据库安装部署、配置优化、故障排查、性能测试等方面。
在文章中,我们不仅提供解决方案,还会结合实例深入剖析问题的成因,提升读者对GreatSQL数据库的理解能力。
如果你在管理、使用GreatSQL数据库时遇到棘手的技术难题,想系统地学习提高数据库技能,就来看看官答的文章吧。这里不仅可以找到可靠的解决方法,还能从中学习到数据库优化的经验和思路。
通过阅读官答的内容,可以全面地掌握GreatSQL数据库管理的技能,熟练应对各种故障情况。快来关注官答栏目,与我们一起成长!
本问题也是来自讨论群,用户使用的是GreatSQL-8.0.32-24版本数据库

[*]GreatSQL-8.0.32-24-Linux-glibc2.28-x86_64-minimal.tar.xz
GreatSQL是一款开源免费数据库,可在普通硬件上满足金融级应用场景,具有高可用、高性能、高兼容、高安全等特性,可作为MySQL或Percona Server for MySQL的理想可选替换。
用户提供错误日志如下
$ cat error.log
2023-10-27T11:18:22.862989+08:00 0 The syntax '--slave-rows-search-algorithms' is deprecated and will be removed in a future release.
2023-10-27T11:18:22.863011+08:00 0 The syntax '--master-info-repository' is deprecated and will be removed in a future release.
2023-10-27T11:18:22.863025+08:00 0 The syntax '--relay-log-info-repository' is deprecated and will be removed in a future release.
2023-10-27T11:18:22.864851+08:00 0 Insecure configuration for --secure-file-priv: Location is accessible to all OS users. Consider choosing a different directory.
2023-10-27T11:18:22.864949+08:00 0 Basedir set to /usr/local/greatsql/.
2023-10-27T11:18:22.864966+08:00 0 /usr/local/greatsql/bin/mysqld (mysqld 8.0.25) starting as process 94635
2023-10-27T11:18:22.876808+08:00 0 Using Linux native AIO
2023-10-27T11:18:22.877183+08:00 0 Plugin 'FEDERATED' is disabled.
2023-10-27T11:18:22.880103+08:00 1 Failed to find valid data directory.
2023-10-27T11:18:22.880512+08:00 0 Data Dictionary initialization failed.
2023-10-27T11:18:22.880639+08:00 0 Aborting
2023-10-27T11:18:22.880688+08:00 0 Binlog end
2023-10-27T11:18:22.880931+08:00 0 Shutting down plugin 'MyISAM'
2023-10-27T11:18:22.880972+08:00 0 Shutting down plugin 'InnoDB'
2023-10-27T11:18:22.881011+08:00 0 Shutting down plugin 'CSV'
2023-10-27T11:18:22.881047+08:00 0 Shutting down plugin 'daemon_keyring_proxy_plugin'
2023-10-27T11:18:22.881569+08:00 0 /usr/local/greatsql/bin/mysqld: Shutdown complete (mysqld 8.0.25)MySQL Community Server - 用户采用初始化命令如下
$ /usr/local/greatsql/bin/mysqld --defaults-file=/etc/my.cnf -initialize --user=mysql --datadir /data/greatsql--lower-case-table-names=1<blockquote>
其实在这里就可以看出问题所在
来源:https://www.cnblogs.com/greatsql/p/17929832.html
免责声明:由于采集信息均来自互联网,如果侵犯了您的权益,请联系我们【E-Mail:cb@itdo.tech】 我们会及时删除侵权内容,谢谢合作!
页: [1]
查看完整版本: 官答|初始化GreatSQL报错无法找到数据目录或初始化数据字典失败