FreeBSD Port: mysql-serv

Sam Nilsson sam at servingpeace.com
Wed Oct 20 16:18:21 PDT 2004


Michael Heitmeier wrote:

> just installed mysql-server-4.1.6 (upgrade after an uninstall of 4.1.5) 
> and can for the life of me not figure out why it does not start from
> /usr/local/etc/rc.d/mysql_server start

from /usr/ports/UPDATING:
20041019:
   AFFECTS: users of databases/mysql41-server
   AUTHOR: ale at FreeBSD.org

   The MySQL Daemon must now be enabled / disabled in rc.conf.
   See the script for details.

What does this mean? Make sure the following line is listed in /etc/rc.conf:

mysql_enable="YES"

I've noticed a lot of ports that I use have started adding the 
requirement above. Make sure to read /usr/ports/UPDATING every time you 
upgrade or install ports.

Also, any time a script in /usr/local/etc/rc.d/ doesn't work, read the 
script. From the /usr/local/etc/rc.d/mysql-server.sh script:

# Add the following line to /etc/rc.conf to enable mysql:
# mysql_enable (bool):          Set to "NO" by default.
#                               Set it to "YES" to enable MySQL.
# mysqllimits_enable (bool):    Set to "NO" by default.
#                               Set it to yes to run `limits $limits_args`
#                               just before mysql starts.
# mysqllimits_args (str):       Default to "-e -U mysql"
#                               Arguments of pre-start limits run.
#

Peace
- Sam Nilsson


More information about the freebsd-ports mailing list