Databases Reference
In-Depth Information
submenu of the System menu); you can also run this program by typing
drakxservices
at the command line. We'll explain how to configure services without
using these graphical tools.
On a Red Hat or Mandriva system, type:
#
chkconfig --level 35
mysql
on
to enable automatic startup in runlevels 3 and 5 (corresponding to normal console or
graphical operation run levels), and:
#
chkconfig --level 35
mysql
off
to disable it.
In a Debian-based system, startup services are controlled using the
update-rc.d
com-
mand. Enable MySQL as follows:
#
update-rc.d
mysql
defaults
Adding system startup for /etc/init.d/mysql ...
/etc/rc0.d/K20mysql -> ../init.d/mysql
/etc/rc1.d/K20mysql -> ../init.d/mysql
/etc/rc6.d/K20mysql -> ../init.d/mysql
/etc/rc2.d/S20mysql -> ../init.d/mysql
/etc/rc3.d/S20mysql -> ../init.d/mysql
/etc/rc4.d/S20mysql -> ../init.d/mysql
/etc/rc5.d/S20mysql -> ../init.d/mysql
and disable automatic startup as follows:
#
update-rc.d -f
mysql
remove
update-rc.d: /etc/init.d/mysql exists during rc.d purge (continuing)
Removing any system startup links for /etc/init.d/mysql ...
/etc/rc0.d/K20mysql
/etc/rc1.d/K20mysql
/etc/rc2.d/S20mysql
/etc/rc3.d/S20mysql
/etc/rc4.d/S20mysql
/etc/rc5.d/S20mysql
/etc/rc6.d/K20mysql
If you have a standalone Apache web server installed, you can enable and disable its
automatic startup by using
httpd
or
apache2
instead of
mysql
in the preceding
commands.
Installing Under Windows
The MySQL installation process for Windows uses graphical installation programs and
is relatively straightforward. You need to first decide whether you want to install only
MySQL, or whether you'd like to install an integrated package including additional
software that you're likely to need later. Both approaches are equally easy to follow. At
various points during the installation process, you may be prompted to allow the in-
staller program to run and modify your system, including unblocking server ports. Read