error: Found option without preceding group in config file: /mnt/mysql/my.cnf

我在启动时如果不创建mysql.cnf文件启动正常,如果创建mysql.cnf后启动就报下面的错误

错误:
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 配置文件中的内容:

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




配置文件不止这些,还有一些必须要有的,比如 socket=..... 楼主你在它自己的my.cnf里面修改就好了,不要自己创建一个.

呵呵,解决了~~原来my.cnf前面还要加上[mysqld]作为一个组
我只用了这些配置文件~其它的我没有修改的


参考:http://bbs.csdn.net/topics/360003405

猜你喜欢

转载自rd-030.iteye.com/blog/2347784