为什么启动服务中没有?

由 scwcg 在 06-11-2004 09:32 发表:

为什么启动服务中没有?

我在linux7.3下编译安装mysql后,我想在加入启动服务中,为什么在启动服务中没有mysql,如何才能加入启动服务中?


由 Snoopy 在 06-12-2004 02:35 发表:


编译的没有自动加入的,可以用chkconfig


And then in the evening light, when the bars of freedom fall

I watch the two of you in the shadows on the wall

How in the darkness steals some of the choices from my hand

Then will I begin to under


由 小皮 在 06-12-2004 11:40 发表:


groupadd mysql

useradd -g mysql -c "mysql User" -d /var/lib/mysql mysql

cp mysql.server.sh /etc/rc.d/init.d/mysqld

vi /etc/rc.d/init.d/mysqld

修改

pid_file=$datadir/mysql.pid

datadir=/var/lib/mysql

basedir=/usr/local/mysql

chmod +x /etc/rc.d/init

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus