修改完配置信息后,重新登录mysql时报错
- 报错1:
mysql: [ERROR] Found option without preceding group in config file /etc/my.cnf at line 2.
mysql: [ERROR] Fatal error in defaults handling. Program aborted!
解决方法:在配置文件首行添加[mysqld]
- 警告2:
mysql: [Warning] World-writable config file '/etc/my.cnf' is ignored.
原因:mysql担心全局可写带来安全隐患
解决方法:修改文件访问权限为644,即用户可读写,其他只可读
chmod 644 /etc/my.cnf
1129

被折叠的 条评论
为什么被折叠?



