amd使用阿里云的等保问题?

新手上路,请多包涵

是这样的 我这边使用的阿里的 等保2.0 等级三系统
然后安装amh 发现mysql 启动不了 是不是因为设置了 安全和审计账户的问题?

[root@iZf8zd9mcyeq9lbrdvcj43Z ecs-user]# /usr/local/mysql-generic-5.7/bin/mysqld start

2023-02-02T11:00:22.815972Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2023-02-02T11:00:22.816075Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled
2023-02-02T11:00:22.816093Z 0 [Note] /usr/local/mysql-generic-5.7/bin/mysqld (mysqld 5.7.38) starting as process 14387 ...
2023-02-02T11:00:22.816118Z 0 [ERROR] Can't find error-message file '/usr/local/mysql/share/errmsg.sys'. Check error-message file location and 'lc-messages-dir' configuration directive.
2023-02-02T11:00:22.817723Z 0 [ERROR] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!

2023-02-02T11:00:22.817750Z 0 [ERROR] Aborting

2023-02-02T11:00:22.817766Z 0 [Note] Binlog end
2023-02-02T11:00:22.817847Z 0 [Note]

[root@iZf8zd9mcyeq9lbrdvcj43Z ecs-user]# amh mysql-generic-5.7 start

[Linux] AMH 7.0
http://amh.sh

[mysql-generic-5.7 start]

mysql-generic-5.7
[OK] mysql-generic-5.7 is already installed.
Starting MySQL.The server quit without updating PID file (/[FAILED]l-generic-5.7/mysql.pid).
[Error] mysql-generic-5.7 start failed.
[root@iZf8zd9mcyeq9lbrdvcj43Z ecs-user]#

回复
阅读 654
1 个回答

亲,amh的mysql安装目录与配置正常是在/usr/local/mysql-版本号/目录下。
上面提示/usr/local/mysql/share/是不正常的,
是否改过my.cnf的配置,检测/usr/local/mysql-generic-5.7/my.cnf
也有可能是你有其它方式安装了mysql存在其它my.cnf配置情况,则是要删除。

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题
宣传栏