[ERROR] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!
2015-12-17 09:12 abce 阅读(32689) 评论(0) 编辑 收藏 举报测试mysqld启动mysql server的时候,报如下错误:
1 2 3 4 5 6 | 2015-12-17 00:46:02 10785 [ERROR] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root! 2015-12-17 00:46:02 10785 [ERROR] Aborting 2015-12-17 00:46:02 10785 [Note] Binlog end 2015-12-17 00:46:02 10785 [Note] . /mysqld : Shutdown complete |
原因:
这是因为在测试的时候,使用root来启动的。而从安全角度来讲,不建议用root用户启动。
解决方案:
1.在使用root用户启动的时候,带上--user=root,强制启动(不建议这么做,仅供测试)
1 2 3 | # ./mysqld --user=root & # ps -ef|grep mysql | grep -v grep root 11055 11019 0 01:02 pts /0 00:00:00 . /mysqld --user=root |
2.启动的时候,指定mysql用户
1 2 3 | # ./mysqld --user=mysql & # ps -ef|grep mysql |grep -v grep mysql 11165 11100 2 01:06 pts /1 00:00:00 . /mysqld --user=mysql |
3.在my.cnf指定用户
1 2 | [mysqld] user=mysql |
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· .NET10 - 预览版1新功能体验(一)