linux – /etc/my.cnf – 我缺少什么?
发布时间:2020-12-13 16:54:48 所属栏目:Linux 来源:网络整理
导读:我收到以下错误: error: Found option without preceding group in config file: /etc/my.cnf at line: 1Fatal error in defaults handling. Program aborted 这是我的/etc/my.cnf文件: [root@host backup]#cat /etc/my.cnfmax_allowed_packet=100Mdatadir
我收到以下错误:
error: Found option without preceding group in config file: /etc/my.cnf at line: 1 Fatal error in defaults handling. Program aborted 这是我的/etc/my.cnf文件: [root@host backup]#cat /etc/my.cnf max_allowed_packet=100M datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock user=mysql # Default to using old password format for compatibility with mysql 3.x # clients (those using the mysqlclient10 compatibility package). old_passwords=1 [mysqld_safe] log-error=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid [mysqldump] max_allowed_packet=100M 解决方法
添加[mysqld]作为my.cnf文件的第一行.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |