系统是AS4,使用RPM方式安装的MySQL最新版本,安装成功,使用service mysql.server start启动也成功,但是当机器重新启动的时候,init.d中的mysql.serve却好像不起作用,因为重新启动的AS4中没有mysql进程。
/sbin/chkconfig mysql.server reset和/sbin/chkconfig --list mysql.server也都正常。为什么?

解决方案 »

  1.   

    ps -aux |grep mysql 没有结果吗?
      

  2.   

    If you want to install the MySQL RPM on older Linux distributions that do not support initialization scripts in /etc/init.d (directly or via a symlink), you should create a symbolic link that points to the location where your initialization scripts actually are installed. For example, if that location is /etc/rc.d/init.d, use these commands before installing the RPM to create /etc/init.d as a symbolic link that points there: shell> cd /etc
    shell> ln -s rc.d/init.d .上面说到比较旧的linux可能在/etc/init.d中不支持初始化脚本,你应该在初始化脚本自动安装的目录作一个符号链接我可能翻译得不准确,你作一个符号链接试试看吧,呵呵。上面那段话,在mysql的手册上在linux下用rpm安装mysql中有提到
      

  3.   

    To huailairen(流浪猫--很想养只猫,带着它到处流浪。)
    ps -A | grep mysql没有任何结果。
      

  4.   

    To hy2003fly() :不太可能是这个问题,因为如果不是在重新启动的时候,手动调用:/sbin/service mysql.server start这个命令是成功的。mysql.server在/etc/init.d中。而且/sbin/chkcofig mysql.server reset和/sbin/chkconfig --list mysql.server都没有问题。但是setup后,服务列表中就是没有mysql.server。是不是权限问题?还是其他问题?
      

  5.   

    现在setup后,服务列表中也有mysql的启动项目了,但是mysql还是在机器重新启动的时候没有启动起来。?????????
      

  6.   

    从来不用rpm包安装,都是手动编译 tar.gz文件.
      

  7.   

    我原来也是用tar.gz安装,请问大家,RPM安装怎么办?会不会是权限问题?