我在启动时如果不创建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里面修改就好了,不要自己创建一个.
[color=red][b]呵呵,解决了~~原来my.cnf前面还要加上[mysqld]作为一个组
我只用了这些配置文件~其它的我没有修改的 [/b][/color]
参考:http://bbs.youkuaiyun.com/topics/360003405
错误:
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里面修改就好了,不要自己创建一个.
[color=red][b]呵呵,解决了~~原来my.cnf前面还要加上[mysqld]作为一个组
我只用了这些配置文件~其它的我没有修改的 [/b][/color]
参考:http://bbs.youkuaiyun.com/topics/360003405
本文记录了一次MySQL启动失败的问题解决过程。通过正确配置mysql.cnf文件中的[mysqld]组,成功解决了启动时报错的问题。文中还分享了部分有效的配置参数。
930

被折叠的 条评论
为什么被折叠?



