错误信息:[ERROR] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!
mysql
错误缘由是mysql处于安全考虑,默认拒绝以root帐号启动服务sql
解决方法有如下几种:segmentfault
一、经过在命令后面加上--user=root
进行强制使用root帐号启动。安全
mysqld --user=root
二、使用一个普通用户进行启动mysqld 。这个用户必须是属于mysqld用户组,
编辑/etc/my.cnf
文件,在[mysqld]
下新增启动用户mysql学习
[mysqld] user=mysql
启动时加上--user=mysql
区块链
mysqld --user=mysql