mysqld命令怎么用不了

水哥阿乐 2010-09-14 08:01:13
在Redhat Linux 5里用mysqld命令出错,帮看看
[root@localhost ~]# mysqld stop
100907 1:39:25 [Warning] '--skip-locking' is deprecated and will be removed in a future release. Please use '--skip-external-locking' instead.
100907 1:39:25 [ERROR] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!

100907 1:39:25 [ERROR] Aborting

100907 1:39:25 [Note] mysqld: Shutdown complete


用/etc/init.d/mysqld stop也是一样的出错提示

该怎么用
...全文
362 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
steptodream 2010-09-14
  • 打赏
  • 举报
回复
上面说的修改/etc/my.conf说错了 应该是/etc/my.cnf
steptodream 2010-09-14
  • 打赏
  • 举报
回复
首先确认mysql安装之后的各目录的权限正确 并为mysql创建了启动账户

先这样启动
/your-mysql-home/bin/safe_mysqld --user=mysql

然后在使用/etc/init.d/mysqld restart/stop/start等

如果还是不行
/etc/my.conf中的mysqld这一节中加入
user=mysql

然后再尝试

56,687

社区成员

发帖
与我相关
我的任务
社区描述
MySQL相关内容讨论专区
社区管理员
  • MySQL
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧