mysql 配置大小写敏感后不能重启

[问题现象]

在mysql的配置文件my.cnf配置lower_case_table_names=1后不能重启mysql,提示mysql.serviceJob for mysql.service failed because the control process exited with error code

 

[问题原因]

配置文件写法有问题,网络上的描述补全导致断章取义直接复制粘贴后重启不成功

 

[解决方法]

在设置lower_case_table_names=1时候应该在上面添加[mysqld]

配置好后重启就可以了

 

原文地址:https://www.cnblogs.com/semishigure/p/9177715.html