我在启动时如果不创建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

解决方案 »

  1.   

    是my.cnf吧,贴出你my.cnf的全部记录.估计你有参数写错了;
      

  2.   

    对就是,my.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
      

  3.   

    检查你的MYSQL的错误日志,看错误信息是什么。
      

  4.   


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

  5.   

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