二维码

[ERROR] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as r

1731 人阅读 | 时间:2019年10月17日 09:56

[ERROR] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!

此处 mysql是出于安全考虑,默认拒绝用root账号启动mysql服务。

[ERROR] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as r

解决方法:

1.通过在命令后面加上--user=root 进行强制使用root账号启动。这样是最快的。

cd /etc/init.d

mysqld --user=root

2.使用一个普通用户进行启动mysqld 。这个用户必须是属于mysqld用户组,且在my.cnf文件中。使用 vi /etc/my.cnf 

加上user=mysql  进行指定mysql用户来启动mysql服务。这样是最好的。

[ERROR] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as r

再次启动mysql.

————————————————

版权声明:本文为CSDN博主「有一种人仅仅是认识就很好了」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。

原文链接:https://blog.csdn.net/qq_36350532/article/details/79591803


©著作权归作者所有:来自ZhiKuGroup博客作者没文化的原创作品,如需转载,请注明出处,否则将追究法律责任 来源:ZhiKuGroup博客,欢迎分享。

评论专区
  • 昵 称必填
  • 邮 箱选填
  • 网 址选填
◎已有 0 人评论
搜索
作者介绍
30天热门
×
×
本站会员尊享VIP特权,现在就加入我们吧!登录注册×
»
会员登录
新用户注册
×
会员注册
已有账号登录
×