转载自http://blog.csdn.net/jubincn/article/details/6725582

在虚拟机中安装了CentOS时安装了Nami版的Rendmine,没有设置MySQL自动启动,手动启动时出现 Please read “Security” section of the manual to find out how to run mysqld as root!错误,根据提示,查了 /opt/redmine-1.2.1-1/mysql/docs/mysql.info的Security部分,发现是因为MySQL为了安全,不希望root用户直接启动mysql。下面是文档中的原文:

*Never run the MySQL server as the Unix root' user. This is
extremely dangerous, because any user with the
FILE’ privilege is
able to cause the server to create files as root' (for example,
~root/.bashrc’). To prevent this, *Note mysqld': mysqld. refuses
to run as
root’ unless that is specified explicitly using the
--user=root' option.
永远不要使用root帐号启动MySQL Server。这样做很微笑,因为拥有FILE'权限的用户会使得MySQL Server使用root帐户创建文件(比如,~root/.bashrc),为了防止类似的事情发生,mysqld默认拒绝用户使用root帐户启动,但root用户可以通过在命令后面加上"--user=root"选项来强行启动mysqld。
*Note
mysqld’: mysqld. can (and should) be run as an ordinary,
unprivileged user instead. You can create a separate Unix account
named mysql' to make everything even more secure. Use this
account only for administering MySQL. To start *Note
mysqld’:
mysqld. as a different Unix user, add a user' option that
specifies the user name in the
[mysqld]’ group of the `my.cnf’
option file where you specify server options. For example:

      [mysqld]user=mysql

与使用root用户启动mysqld相比,更好的方法是使用一个普通的、没有高级权限的用户帐户允许mysqld,例如创建一个名为mysql的用户帐户来专门管理MySQL。使用其帐启
动MySQL的方法是在mysqld命令后面加上一个用户选项,这个用户属于mysqld用户组并且位于my.cnf配置文件中。例如在创建mysql帐户后,可以将下面的内容添加到my.cnf文
件中:
[mysqld]
user=mysql
This causes the server to start as the designated user whether you
start it manually or by using *Note mysqld_safe': mysqld-safe. or
*Note
mysql.server’: mysql-server. For more details, see *Note
changing-mysql-user::.
这个选项可以使你使用指定的用户帐户启动MySQL,无论是mysqld_safe还是mysql.server命令,都可以使用。
Running *Note mysqld': mysqld. as a Unix user other thanroot’
does not mean that you need to change the root' user name in the
user’ table. _User names for MySQL accounts have nothing to do
with user names for Unix accounts_.
不要使用Unix的root用户启动并不意味着你要修改MySQL中的user表中的root用户名,因为Unix的root帐户和MySQL的root帐户没有什么关系。

Please read Security section of the manual to find out how to run mysqld as root!错误解决相关推荐

  1. Fatal error: Please read “Security“ section of the manual to find out how to run mysqld as root

    .通过在命令后面加上–user=root 进行强制使用root账号启动. cd /etc/init.d mysqld --user=root 参考: https://blog.csdn.net/huo ...

  2. X509证书 指定了无效的提供程序类型 System.Security.Cryptography.CryptographicException 错误解决方法

    X509证书 指定了无效的提供程序类型 System.Security.Cryptography.CryptographicException 错误解决方法 参考文章: (1)X509证书 指定了无效 ...

  3. centos 使用yum 安装出现 File contains no section headers 错误解决方法

    centos 使用yum 安装出现 File contains no section headers 错误解决方法 参考文章: (1)centos 使用yum 安装出现 File contains n ...

  4. Spring Security 定制UserDetailsService,动态uri权限,Thymeleaf,限制密码强度、过期、错误密码锁定超时自动解锁、禁用历史密码、新密码和现密码差异要求编辑距离

    在本教程中,我将指导您如何编写代码,以使用具有基于表单的身份验证的Spring安全API来保护Spring Boot应用程序中的网页.用户详细信息存储在MySQL数据库中,并使用春季JDBC连接到数据 ...

  5. 彻底禁止Microsoft Security Client OOBE 程序错误解决办法 (关闭Windows Defender)

    照着之前的方法试了几次,事件检视簿 内 检视看看~ Microsoft Security Client OOBE 程序错误 适用于: Windows Windows 7 系统错误日志如下:会话&quo ...

  6. Microsoft Security Client OOBE 程序错误解决办法

     事件检视簿 内 检视看看~ Microsoft Security Client OOBE 程序错误 适用于: Windows Windows 7 系统错误日志如下:会话"Microso ...

  7. java.security.cert.Certificate:No subject alternative DNS name matching api.exmail.qq.com found.解决方法

    工作中使用https请求,本地调用正常,放到服务器端运行失败,报错为java.security.cert.Certificate:No subject alternative DNS name mat ...

  8. [Arduino]Hello_WiFi.ino.elf section `.irom0.text' will not fit in region `irom0_0_seg' 错误解决办法

    原因:内存不够 解决办法:选择更大的内存即可,如下图

  9. MySQL学习之路:多实例无法启动排错

    由于我们的服务器会借给我们部分公司使用,但是部分公司有没有运维,都是开发直接操作,导致出现一些问题后直接来找我处理.为此,也学习到很多. 近来,一哥们由于不知道操作什么导致服务器直接挂掉,于是我联系机 ...

最新文章

  1. 硬盘温度70度正常吗_70多岁老年人原来血压160,现在130正常吗?医生为你分析实情...
  2. centos6.8防火墙模块未加载
  3. 消息队列 策略_消息模型:主题和队列有什么区别?
  4. 深入mysql慢查询设置的详解
  5. 信息学奥赛一本通C++语言——1003:对齐输出
  6. 办公自动化-演练-统计日报的演练-0223
  7. python软件测试面试题及答案_软件测试面试 | 一道大厂算法面试真题,你能答上来吗?(附答案)...
  8. ios 简单的计时器游戏 NSUserDefaults NSDate NSTimer
  9. PyTorch 入坑四 梯度、链式法则、计算图与反向传播
  10. .describe() python_Python实现ARMA模型
  11. 为什么你会觉得微服务架构很别扭
  12. php 如何将100w级的数据入库。
  13. Java内存模型深度解析:重排序
  14. 图论基础(Tarjan与拓扑排序)
  15. python图书管理实训报告总结_图书管理系统设计实训报告
  16. 华为h12m03装系统_华为H22H-03服务器怎么从U盘装系统?
  17. php bzip2 安装,bzip2 linux 安装 yum
  18. 三端口 DC-DC 变换器(C 题)-- 2021年全国大学生电子设计竞赛试题
  19. EasyExcel自定义复杂的表头并在同sheet中实现分页
  20. 亲密关系的本质是分享:如何把握暧昧的窗口期?

热门文章

  1. python-文件的读写操作-入门-0225
  2. linux-修改所有者与所属组
  3. jquery-删除当前行的数据
  4. linux指令:时间与日期
  5. 一个热词推荐的简单实现
  6. 内存管理(注意事项和重点)
  7. 安装Ubuntu nginx及其配置安装Php
  8. Windows服务卸载之后未重启机器之前再安装问题
  9. TypeScript 接口(Interface)
  10. 使用Docker快速部署禅道V11.6版本