submenu of the System menu you can also
run this program by typingdrakxservicesat 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 onto enable automatic startup in runlevels 3 and 5 (corresponding to normal console or
graphical operation run levels, and
chkconfig -level 35 mysql offto disable it.
In a Debian-based system, startup services are controlled using the update-rc.d command.
Enable MySQL as follows update-rc.d mysql defaultsAdding 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 removeupdate-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 WindowsThe MySQL installation process for Windows uses graphical installation programs and is relatively straightforward. You need to first decide whether
you want to install onlyMySQL, 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 maybe prompted to allow the installer program
to run and modify your system, including unblocking server ports. Read
Share with your friends: