Found option without preceding group in config file MYSQL code example
Example: Found option without preceding group in config file: /etc/mysql/mariadb.conf.d/50-server.cnf at line: 1
// Just add [mysqld] as first line in the /etc/mysql/my.cnf file.
// Example:
[mysqld]
default-time-zone = "+08:00"
...