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文件的第一行.

相关文章

1、安装Apache。 1)执行如下命令,安装Apache服务及其扩展包...
一、先说一下用ansible批量采集机器信息的实现办法: 1、先把...
安装配置 1. 安装vsftpd 检查是否安装了vsftpd # rpm -qa | ...
如何抑制stable_secret读取关键的“net.ipv6.conf.all.stabl...
1 删除0字节文件 find -type f -size 0 -exec rm -rf {} ...
## 步骤 1:安装必要的软件包 首先,需要确保系统已安装 `dh...