mysql port install
eoghan
freebsd at redry.net
Mon Sep 26 13:54:05 PDT 2005
On 26 Sep 2005, at 21:43, Glenn Dawson wrote:
>> Thanks. Sorry about the wrong list! Ive copied the contents below.
>>
>
> I see a couple things, scroll down...
>
>
>
>> #!/bin/sh
>> #
>> # $FreeBSD: ports/databases/mysql41-server/files/mysql-server.sh.in,v
>> 1.3 2005/04/11 08:47:36 ale Exp $
>> #
>>
>> # PROVIDE: mysql
>> # REQUIRE: NETWORKING SERVERS
>> # BEFORE: DAEMON
>> # KEYWORD: shutdown
>>
>> #
>> # 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.
>> # mysql_limits (bool): Set to "NO" by default.
>> # Set it to yes to run `limits -e -U mysql`
>> # just before mysql starts.
>> # mysql_dbdir (str): Default to "/var/db/mysql"
>> # Base database directory.
>> # mysql_args (str): Custom additional arguments to be passed
>> # to mysqld_safe (default empty).
>> #
>>
>> . /etc/rc.subr
>>
>> name="mysql"
>> rcvar=`set_rcvar`
>>
>> load_rc_config $name
>>
>> : ${mysql_enable="NO"}
>> : ${mysql_limits="NO"}
>> : ${mysql_dbdir="/var/db/mysql"}
>> : ${mysql_args=""}
>>
>> mysql_user="mysql"
>> mysql_limits_args="-e -U ${mysql_user}"
>> pidfile="${mysql_dbdir}/`/bin/hostname`.pid"
>> command="/usr/local/bin/mysqld_safe"
>> command_args="--defaults-extra-file=${mysql_dbdir}/my.cnf --user=$
>> {mysql_user} --
>>
>
> There's an extra space after --user=$
>
>
>> datadir=${mysql_dbdir} --pid-file=${pidfile} $ {mysql_args} > /dev/
>> null &"
>>
>
> another extra space after $ and before {mysql_args}
>
> Not sure if those were because of the way you pasted the file, or
> if they are really there, but you'll want to check that out first.
>
> -Glenn
It just the way it got pasted. I grabbed it from samba (yep, got that
working :) )... theres no actual spaces in the file. Im not sure what
David means? If i run pkg_info | grep mysql i see version 4.1.14 for
client and server.
Thanks
Eoghan
More information about the freebsd-questions
mailing list