重启系统之后每次必须手动启动MYSQL服务!!!!!!!!!

由 再见理想 在 12-26-2003 10:23 发表:

重启系统之后每次必须手动启动MYSQL服务!!!!!!!!!

我的MYSQL是编译包,我只要一关机再重启计算机,mysql服务就必须手动启动才能运行,每次都是这样,请问这是怎么回事呢?


我是一名现役二级士官!!!!!!

曾经沧海(海)难为水(碎)

除却巫山(散)不是云(云)

------云散海碎


由 dato 在 12-26-2003 11:20 发表:


mysql manual

> quote: > > * * * > > If you would like MySQL to start automatically when you boot your machine, you can copy support-files/mysql.server to the location where your system has its startup files. More information can be found in the support-files/mysql.server script itself and in section 2.4.3 Starting and Stopping MySQL Automatically.
>
> # Usually this is put in /etc/init.d (at least on machines SYSV R4 based
>
> # systems) and linked to /etc/rc3.d/S99mysql and /etc/rc0.d/K01mysql.
>
> # When this is done the mysql server will be started when the machine is
>
> # started and shut down when the systems goes down.
>
>
>
> You need to add these start and stop commands to the appropriate places in your /etc/rc*' files when you want to start up MySQL automatically on your server. > > > > On most current Linux distributions, it is sufficient to copy the file mysql.server into the /etc/init.d' directory (or /etc/rc.d/init.d' on older Red Hat systems). Afterwards, run the following command to enable the startup of MySQL on system bootup: > > > > shell> chkconfig --add mysql.server > > > > As an alternative to the above, some operating systems also use /etc/rc.local' or /etc/init.d/boot.local' to start additional services on bootup. To start up MySQL using this method, you could append something like the following to it: > > > > /bin/sh -c 'cd /usr/local/mysql ; ./bin/safe_mysqld --user=mysql &' > > > > You can also add options for mysql.server in a global /etc/my.cnf' file. A typical `/etc/my.cnf' file

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