是这样的 我这边使用的阿里的 等保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]#
亲,amh的mysql安装目录与配置正常是在/usr/local/mysql-版本号/目录下。
上面提示/usr/local/mysql/share/是不正常的,
是否改过my.cnf的配置,检测/usr/local/mysql-generic-5.7/my.cnf
也有可能是你有其它方式安装了mysql存在其它my.cnf配置情况,则是要删除。