If I don't create the mysql.cnf file at startup, it will start normally. If I start after creating mysql.cnf, the following
error :
nas:/mnt/mysql# error: Found option without preceding group in config file: /mnt/mysql /my.cnf at line: 1
Fatal error in defaults handling. Program aborted
error: Found option without preceding group in config file: /mnt/mysql/my.cnf at line: 1
Fatal error in defaults handling. Program aborted
mysql.cnf Contents in the configuration file:
max_heap_table_size=64000000
max_connections=1000
max_tmp_tables=128
server-id =1
log-bin=mysql-bin
binlog-do-db=radius
binlog-ignore-db=mysql
The configuration file is not only these, but also some must There are some, such as socket=..... The landlord, you can modify it in its own my.cnf, don't create one by yourself.
Oh, it's solved~~ It turns out that [mysqld] should be added in front of my.cnf as a group
I only use these configuration files~other ones I haven't modified
Reference
error: Found option without preceding group in config file: /mnt/mysql/my.cnf
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=326443924&siteId=291194637
Recommended
Ranking