linux – /etc/my.cnf – 我缺少什么?

前端之家收集整理的这篇文章主要介绍了linux – /etc/my.cnf – 我缺少什么?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我收到以下错误
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文件的第一行.

猜你在找的Linux相关文章