首先,我们需要确认ExecStartPre=/usr/share/mysql/mysql-systemd-start pre这条命令是否正确。在systemd的服务单元文件中,ExecStartPre用于指定在服务主进程启动之前执行的命令。这里的命令似乎包含了额外的参数pre,这通常不是标准用法。标准的ExecStartPre应该直接指向一个脚本或可执行文件,而不是包含额外的参数。因此,...
Process: 2978 ExecStartPre=/usr/local/mysql/bin/mysqld_pre_systemd (code=exited, status=0/SUCCESS) Dec 20 10:30:05 iZbp188uiv7i1p64qq0oicZ systemd[1]: Failed to start MySQL Server. Dec 20 10:30:05 iZbp188uiv7i1p64qq0oicZ systemd[1]: Unit mysqld.service entered failed state. ...
[: too many argumentsHow to repeat:add the datadir directive multiple times and run "/usr/share/mysql/mysql-systemd-start pre"Suggested fix:This happens as having multiple directives of the same key will yield multiple outputs when using the command: my_print_defaults. A patch will be ...
Process: 2978 ExecStartPre=/usr/local/mysql/bin/mysqld_pre_systemd (code=exited, status=0/SUCCESS) Dec 20 10:30:05 iZbp188uiv7i1p64qq0oicZ systemd[1]: Failed to start MySQL Server. Dec 20 10:30:05 iZbp188uiv7i1p64qq0oicZ systemd[1]: Unit mysqld.service entered failed state. ...