Re: How to start mysql at boot time?

From: Dave Uhring (daveuhring_at_yahoo.com)
Date: 06/16/05


Date: Thu, 16 Jun 2005 13:25:36 -0500

On Thu, 16 Jun 2005 20:05:03 +0200, Bas Keur wrote:

> -- add this to /etc/rc.local --
> ### MySQL ###
> if [ -x /usr/local/share/mysql/mysql.server ]; then
> echo 'Starting MySQL'
> /usr/local/share/mysql/mysql.server start >/dev/null 2>&1
> fi
> -- add this to /etc/rc.local --
>
> Voila !
> If this is the official way ?
> It's my way, oh yes thats official around here :))

You also need a line in /etc/rc.shutdown to stop the mysql server cleanly.
Unless you want to risk corruption of your databases.



Relevant Pages

  • Re: How to start mysql at boot time?
    ... > Unless you want to risk corruption of your databases. ... Now thats a very good point indeed. ... The `reboot` sync's the fs, so i was lucky no corruption ever happend due ...
    (comp.unix.bsd.openbsd.misc)
  • Re: Adding a blank row to a datatable
    ... Thats doesn;t really make sense. ... One of the primary tenants of a relational ... databases is the the order of the rows is unimportant. ...
    (microsoft.public.dotnet.languages.vb)
  • Project help
    ... as possible but thats my headache but i really want to put databases. ... PS - i'd considered making a pseudo-firewall but thats not a good ... option in Java. ...
    (comp.lang.java.help)