在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] Aborting100907  1:39:25 [Note] mysqld: Shutdown complete
用/etc/init.d/mysqld stop也是一样的出错提示该怎么用

解决方案 »

  1.   

    首先确认mysql安装之后的各目录的权限正确 并为mysql创建了启动账户先这样启动
    /your-mysql-home/bin/safe_mysqld --user=mysql然后在使用/etc/init.d/mysqld restart/stop/start等如果还是不行
    /etc/my.conf中的mysqld这一节中加入
    user=mysql然后再尝试
      

  2.   

    上面说的修改/etc/my.conf说错了 应该是/etc/my.cnf