GreatSQL社区

搜索

[待回复] 根据官方提供的源码编译rpm,然后安装无法启动

346 21 4 天前
根据官方提供的源码编译rpm,然后安装无法启动,启动后报错日志如下





2025-06-23T07:23:18.882050Z 0 [Warning] [MY-010097] [Server] Insecure configuration for --secure-log-path: Current value does not restrict location of generated files. Consider setting it to a valid, non-empty path.
2025-06-23T07:23:18.882105Z 0 [Note] [MY-013932] [Server] BuildID[sha1]=a9c568678ced545bd6c4d327fb062924247b4c83
2025-06-23T07:23:18.882111Z 0 [Note] [MY-010949] [Server] Basedir set to /usr/.
2025-06-23T07:23:18.882119Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.32-27) starting as process 444
2025-06-23T07:23:18.888373Z 0 [Note] [MY-012366] [InnoDB] Using Linux native AIO
2025-06-23T07:23:18.888557Z 0 [Note] [MY-010747] [Server] Plugin 'FEDERATED' is disabled.
2025-06-23T07:23:18.888621Z 0 [Note] [MY-010747] [Server] Plugin 'ndbcluster' is disabled.
2025-06-23T07:23:18.888634Z 0 [Note] [MY-010747] [Server] Plugin 'ndbinfo' is disabled.
2025-06-23T07:23:18.888641Z 0 [Note] [MY-010747] [Server] Plugin 'ndb_transid_mysql_connection_map' is disabled.
2025-06-23T07:23:18.890266Z 1 [ERROR] [MY-011011] [Server] Failed to find valid data directory.
2025-06-23T07:23:18.890351Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
2025-06-23T07:23:18.890370Z 0 [ERROR] [MY-010119] [Server] Aborting
2025-06-23T07:23:18.890391Z 0 [Note] [MY-010120] [Server] Binlog end
2025-06-23T07:23:18.890453Z 0 [Note] [MY-010733] [Server] Shutting down plugin 'MyISAM'
2025-06-23T07:23:18.890465Z 0 [Note] [MY-010733] [Server] Shutting down plugin 'InnoDB'
2025-06-23T07:23:18.890477Z 0 [Note] [MY-010733] [Server] Shutting down plugin 'CSV'
2025-06-23T07:23:18.890483Z 0 [Note] [MY-010733] [Server] Shutting down plugin 'daemon_keyring_proxy_plugin'
2025-06-23T07:23:18.890732Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.32-27)  GreatSQL (GPL), Release 27, Revision db07cc5cb73.


全部回复(21)
GreatSQL社区 4 天前
https://greatsql.cn/docs/8.0.32- ... roubleshooting.html
安装完 GreatSQL 后,启动失败,提示 valid data directory
reddey 4 天前
注意上面的error信息
卷耳 4 天前
GreatSQL社区 发表于 2025-6-23 15:27
https://greatsql.cn/docs/8.0.32-27/6-oper-guide/8-troubleshooting.html
安装完 GreatSQL 后,启动失败 ...

您这是二进制安装的,我报错的是源码编译后安装的rpm报错的
yejr 4 天前
请补充三个信息
1、配置文件 my.cnf 详细内容
2、数据库初始化操作过程
3、详细错误日志内容
卷耳 4 天前
yejr 发表于 2025-6-23 15:40
请补充三个信息
1、配置文件 my.cnf 详细内容
2、数据库初始化操作过程

开始用的官方提供的mycnf文件,报错也是这个,后面换的如下cnf

datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock

log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

user = mysql
datadir = /var/lib/mysql
socket = /var/lib/mysql/mysql.sock
log-error = /var/log/mysqld.log
pid-file = /var/run/mysqld/mysqld.pid
slow_query_log = ON
long_query_time = 0.01
log_slow_verbosity = FULL
log_error_verbosity = 3
innodb_buffer_pool_size = 1G
innodb_redo_log_capacity = 256M
innodb_io_capacity = 10000
innodb_io_capacity_max = 20000
innodb_flush_sync = OFF

yejr 4 天前
卷耳 发表于 2025-6-23 15:51
开始用的官方提供的mycnf文件,报错也是这个,后面换的如下cnf

datadir=/var/lib/mysql

注意看,我需要的是3个信息,只给1个不够
卷耳 4 天前
yejr 发表于 2025-6-23 16:29
注意看,我需要的是3个信息,只给1个不够

2025-06-23T07:12:38.374416Z 0 [Warning] [MY-010097] [Server] Insecure configuration for --secure-log-path: Current value does not restrict location of generated files. Consider setting it to a valid, non-empty path.
2025-06-23T07:12:38.374488Z 0 [Note] [MY-013932] [Server] BuildID[sha1]=a9c568678ced545bd6c4d327fb062924247b4c83
2025-06-23T07:12:38.374494Z 0 [Note] [MY-010949] [Server] Basedir set to /usr/.
2025-06-23T07:12:38.374503Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.32-27) starting as process 422
2025-06-23T07:12:38.380241Z 0 [Warning] [MY-010075] [Server] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: 71da3a44-5001-11f0-a4ad-0242ac110002.
2025-06-23T07:12:38.383667Z 0 [Note] [MY-012366] [InnoDB] Using Linux native AIO
2025-06-23T07:12:38.383855Z 0 [Note] [MY-010747] [Server] Plugin 'FEDERATED' is disabled.
2025-06-23T07:12:38.383915Z 0 [Note] [MY-010747] [Server] Plugin 'ndbcluster' is disabled.
2025-06-23T07:12:38.383928Z 0 [Note] [MY-010747] [Server] Plugin 'ndbinfo' is disabled.
2025-06-23T07:12:38.383936Z 0 [Note] [MY-010747] [Server] Plugin 'ndb_transid_mysql_connection_map' is disabled.
2025-06-23T07:12:38.385501Z 1 [ERROR] [MY-011011] [Server] Failed to find valid data directory.
2025-06-23T07:12:38.385606Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
2025-06-23T07:12:38.385628Z 0 [ERROR] [MY-010119] [Server] Aborting
2025-06-23T07:12:38.385651Z 0 [Note] [MY-010120] [Server] Binlog end
2025-06-23T07:12:38.385706Z 0 [Note] [MY-010733] [Server] Shutting down plugin 'MyISAM'
2025-06-23T07:12:38.385720Z 0 [Note] [MY-010733] [Server] Shutting down plugin 'InnoDB'
2025-06-23T07:12:38.385733Z 0 [Note] [MY-010733] [Server] Shutting down plugin 'CSV'
2025-06-23T07:12:38.385740Z 0 [Note] [MY-010733] [Server] Shutting down plugin 'daemon_keyring_proxy_plugin'
2025-06-23T07:12:38.386044Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.32-27)  GreatSQL (GPL), Release 27, Revision db07cc5cb73.
2025-06-23T07:23:18.882050Z 0 [Warning] [MY-010097] [Server] Insecure configuration for --secure-log-path: Current value does not restrict location of generated files. Consider setting it to a valid, non-empty path.
2025-06-23T07:23:18.882105Z 0 [Note] [MY-013932] [Server] BuildID[sha1]=a9c568678ced545bd6c4d327fb062924247b4c83
2025-06-23T07:23:18.882111Z 0 [Note] [MY-010949] [Server] Basedir set to /usr/.
2025-06-23T07:23:18.882119Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.32-27) starting as process 444
2025-06-23T07:23:18.888373Z 0 [Note] [MY-012366] [InnoDB] Using Linux native AIO
2025-06-23T07:23:18.888557Z 0 [Note] [MY-010747] [Server] Plugin 'FEDERATED' is disabled.
2025-06-23T07:23:18.888621Z 0 [Note] [MY-010747] [Server] Plugin 'ndbcluster' is disabled.
2025-06-23T07:23:18.888634Z 0 [Note] [MY-010747] [Server] Plugin 'ndbinfo' is disabled.
2025-06-23T07:23:18.888641Z 0 [Note] [MY-010747] [Server] Plugin 'ndb_transid_mysql_connection_map' is disabled.
2025-06-23T07:23:18.890266Z 1 [ERROR] [MY-011011] [Server] Failed to find valid data directory.
2025-06-23T07:23:18.890351Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
2025-06-23T07:23:18.890370Z 0 [ERROR] [MY-010119] [Server] Aborting
2025-06-23T07:23:18.890391Z 0 [Note] [MY-010120] [Server] Binlog end
2025-06-23T07:23:18.890453Z 0 [Note] [MY-010733] [Server] Shutting down plugin 'MyISAM'
2025-06-23T07:23:18.890465Z 0 [Note] [MY-010733] [Server] Shutting down plugin 'InnoDB'
2025-06-23T07:23:18.890477Z 0 [Note] [MY-010733] [Server] Shutting down plugin 'CSV'
2025-06-23T07:23:18.890483Z 0 [Note] [MY-010733] [Server] Shutting down plugin 'daemon_keyring_proxy_plugin'
2025-06-23T07:23:18.890732Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.32-27)  GreatSQL (GPL), Release 27, Revision db07cc5cb73.
~                                                                                                                                                                                                                                       
~                                                                                                                                                                                                                                       
~                                                                                                                                                                                                                                       
~                                                                                                                                                                                                                                       
~                                                                                                                                                                                                                                       
~                                                                                                                                                                                                                                       
~                                                                                                                                                                                                                                       
~                                                                                                                                                                                                                                       
~                                                                                                                          
卷耳 4 天前
yejr 发表于 2025-6-23 16:29
注意看,我需要的是3个信息,只给1个不够

不知道rpm安装的怎么去初始化,也没有这一步,只是rpm -ivh great*.rpm --nodeps --force安装
卷耳 4 天前
yejr 发表于 2025-6-23 16:29
注意看,我需要的是3个信息,只给1个不够


123下一页
卷耳

4

主题

0

博客

22

贡献

新手上路

Rank: 1

积分
40

助人为乐(铜)

合作电话:010-64087828

社区邮箱:greatsql@greatdb.com

社区公众号
社区小助手
QQ群
GMT+8, 2025-6-27 12:25 , Processed in 0.029630 second(s), 19 queries , Redis On.
快速回复 返回顶部 返回列表