GNU nano 4.8 /etc/mysql/my.cnf Modified
#
# The Percona Server 8.0 configuration file.
#
# For explanations see
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
#
#
# * IMPORTANT: Additional settings that can override those from this file!
# The files must end with '.cnf', otherwise they'll be ignored.
#
!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mysql.conf.d/
binlog_expire_logs_seconds = 43200
# nano /etc/mysql/my.cnf
root@new:/var/lib# systemctl restart mysql.service
Job for mysql.service failed because the control process exited with error code.
See "systemctl status mysql.service" and "journalctl -xe" for details.
root@new:/var/lib# systemctl status mysql.service
● mysql.service - Percona Server
Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2021-06-13 01:57:20 CST; 6s ago
Process: 16406 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=0/SUCCESS)
Process: 16461 ExecStart=/usr/sbin/mysqld $MYSQLD_OPTS (code=exited, status=1/FAILURE)
Main PID: 16461 (code=exited, status=1/FAILURE)
Status: "Server startup in progress"
Jun 13 01:57:20 new mysql-systemd-start[16447]: my_print_defaults: [ERROR] Fatal error in defaults handling. Program aborted!
Jun 13 01:57:20 new mysql-systemd-start[16452]: my_print_defaults: [ERROR] Found option without preceding group in config file /etc/mysql/my.cnf at line 17.
Jun 13 01:57:20 new mysql-systemd-start[16452]: my_print_defaults: [ERROR] Fatal error in defaults handling. Program aborted!
Jun 13 01:57:20 new mysql-systemd-start[16457]: my_print_defaults: [ERROR] Found option without preceding group in config file /etc/mysql/my.cnf at line 17.
Jun 13 01:57:20 new mysql-systemd-start[16457]: my_print_defaults: [ERROR] Fatal error in defaults handling. Program aborted!
Jun 13 01:57:20 new mysqld[16461]: mysqld: [ERROR] Found option without preceding group in config file /etc/mysql/my.cnf at line 17.
Jun 13 01:57:20 new mysqld[16461]: mysqld: [ERROR] Fatal error in defaults handling. Program aborted!
Jun 13 01:57:20 new systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE
Jun 13 01:57:20 new systemd[1]: mysql.service: Failed with result 'exit-code'.
Jun 13 01:57:20 new systemd[1]: Failed to start Percona Server.