GreatSQL社区

搜索

[已解决] 如何在 鲲鹏麒麟V10+arm64(可以连上外网) 上安装greatsql

1018 3 2023-6-21 16:34
虚心求教如何在 鲲鹏麒麟V10+arm64(可以连上外网) 上安装greatsql


系统环境如下图




谢谢!!!


全部回复(3)
KAiTO 2023-6-21 16:38:25
麒麟系统的话我们是有编译好的安装包
https://gitee.com/GreatSQL/Great ... /GreatSQL-8.0.32-24
安装方法:
https://gitee.com/GreatSQL/Great ... art-with-tarball.md
如果安装不了可以参考文章自行编译下:
https://gitee.com/GreatSQL/Great ... lin-and-loongson.md
fshenye 2023-6-23 15:18:08
本帖最后由 fshenye 于 2023-6-23 15:25 编辑

你好,按照上面的安装步骤,配置了 /etc/my.cnf,但是启动的时候报错提示的 datadir 不是my.cnf中的,请问需要在什么地方指定使用这个全局配置吗?

报错如下


wz-xc-01 bin]# systemctl status greatsql
● greatsql.service - GreatSQL Server
   Loaded: loaded (/usr/lib/systemd/system/greatsql.service; disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Fri 2023-06-23 14:54:41 CST; 23min ago
     Docs: man:mysqld(8)
           http://dev.mysql.com/doc/refman/en/using-systemd.html
  Process: 89168 ExecStartPre=/usr/local/GreatSQL-8.0.32-24-kylin-glibc2.28-aarch64-minimal/bin/mysqld_pre_systemd (code=exited, status=0/SUCCESS)
  Process: 89205 ExecStart=/usr/local/GreatSQL-8.0.32-24-kylin-glibc2.28-aarch64-minimal/bin/mysqld $MYSQLD_OPTS (code=exited, status=1/FAILURE)
Main PID: 89205 (code=exited, status=1/FAILURE)
   Status: "Server shutdown complete"
    Error: 2 (No such file or directory)

Jun 23 14:54:41 ecs-wz-xc-01 mysqld_pre_systemd[89168]: /usr/local/GreatSQL-8.0.32-24-kylin-glibc2.28-aarch64-minimal/bin/mysqld_pre_systemd: line 172>
Jun 23 14:54:41 ecs-wz-xc-01 mysqld[89205]: 2023-06-23T06:54:41.319682Z 0 [Warning] [MY-010097] [Server] Insecure configuration for --secure-log-path:>
Jun 23 14:54:41 ecs-wz-xc-01 mysqld[89205]: 2023-06-23T06:54:41.319740Z 0 [System] [MY-010116] [Server] /usr/local/GreatSQL-8.0.32-24-kylin-glibc2.28->
Jun 23 14:54:41 ecs-wz-xc-01 mysqld[89205]: 2023-06-23T06:54:41.321750Z 0 [Warning] [MY-010091] [Server] Can't create test file /usr/local/GreatSQL-8.>
Jun 23 14:54:41 ecs-wz-xc-01 mysqld[89205]: 2023-06-23T06:54:41.321772Z 0 [ERROR] [MY-013276] [Server] Failed to set datadir to '/usr/local/GreatSQL-8>
Jun 23 14:54:41 ecs-wz-xc-01 mysqld[89205]: 2023-06-23T06:54:41.321852Z 0 [ERROR] [MY-010119] [Server] Aborting
Jun 23 14:54:41 ecs-wz-xc-01 mysqld[89205]: 2023-06-23T06:54:41.321943Z 0 [System] [MY-010910] [Server] /usr/local/GreatSQL-8.0.32-24-kylin-glibc2.28->
Jun 23 14:54:41 ecs-wz-xc-01 systemd[1]: greatsql.service: Main process exited, code=exited, status=1/FAILURE
Jun 23 14:54:41 ecs-wz-xc-01 systemd[1]: greatsql.service: Failed with result 'exit-code'.
Jun 23 14:54:41 ecs-wz-xc-01 systemd[1]: Failed to start GreatSQL Server.

谢谢

yejr 2023-6-25 21:10:27
fshenye 发表于 2023-6-23 15:18
你好,按照上面的安装步骤,配置了 /etc/my.cnf,但是启动的时候报错提示的 datadir 不是my.cnf中的,请问 ...

看下错误提示
  1. Jun 23 14:54:41 ecs-wz-xc-01 mysqld_pre_systemd[89168]: /usr/local/GreatSQL-8.0.32-24-kylin-glibc2.28-aarch64-minimal/bin/mysqld_pre_systemd: line 172>
复制代码

mysqld_pre_systemd文件的第172行对应什么处理逻辑,跟踪和修复下。
fshenye

1

主题

0

博客

5

贡献

新手上路

Rank: 1

积分
7

合作电话:010-64087828

社区邮箱:greatsql@greatdb.com

社区公众号
社区小助手
QQ群
GMT+8, 2024-11-27 10:47 , Processed in 0.028552 second(s), 16 queries , Redis On.
快速回复 返回顶部 返回列表