错误

安装mysql的过程中报如下错误:

error: Found option without preceding group in config file: /usr/my.cnf at line: 4

error: Found option without preceding group in config file: /usr/my.cnf at line: 4

分析

使用cat命令查看文件/usr/my.cnf,发现

[client]
default-character-set=utf8
[mysql]
default-character-set=utf8
[mysqld]
character_set_server=utf8

这几行前面有多余空格。

error: Found option without preceding group in config file: /usr/my.cnf at line: 4

删除后问题解决。

 

相关文章:

  • 2021-05-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-04
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-05-03
  • 2022-12-23
  • 2021-07-24
  • 2022-12-23
  • 2021-10-11
  • 2021-10-10
相关资源
相似解决方案