开发者社区 问答 正文

mysql.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

展开
收起
蛮大人123 2016-02-05 18:19:55 4572 分享 版权
1 条回答
写回答
取消 提交回答
  • 我说我不帅他们就打我,还说我虚伪

    my.cnf前面还要加上[mysqld]作为一个组
    不要只用这些配置文件~其它的也是要修改的

    2019-07-17 18:38:02
    赞同 展开评论