<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Install mysql-server from ports on FreeBSD</title>
	<atom:link href="http://rackerhacker.com/2007/05/27/install-mysql-server-from-ports-on-freebsd/feed/" rel="self" type="application/rss+xml" />
	<link>http://rackerhacker.com/2007/05/27/install-mysql-server-from-ports-on-freebsd/</link>
	<description>Words of wisdom from a server administrator</description>
	<lastBuildDate>Wed, 16 May 2012 12:56:36 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Jim</title>
		<link>http://rackerhacker.com/2007/05/27/install-mysql-server-from-ports-on-freebsd/#comment-2523</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Thu, 07 Aug 2008 00:18:31 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/2007/05/27/install-mysql-server-from-ports-on-freebsd/#comment-2523</guid>
		<description>Hmm, some kind of formatting goodies here. The long options on the mysql_install_db command have double hyphens preceding them, but they look like em dashes in the post above.</description>
		<content:encoded><![CDATA[<p>Hmm, some kind of formatting goodies here. The long options on the mysql_install_db command have double hyphens preceding them, but they look like em dashes in the post above.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://rackerhacker.com/2007/05/27/install-mysql-server-from-ports-on-freebsd/#comment-2522</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Thu, 07 Aug 2008 00:16:14 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/2007/05/27/install-mysql-server-from-ports-on-freebsd/#comment-2522</guid>
		<description>Thanks for this post! I couldn&#039;t remember the mysql_install_db bit. However, I think that if you add &quot;--user=mysql&quot; to the mysql_install_db command, it will set ownership correctly so you wouldn&#039;t need the chown command. (Also need &quot;--datadir=/path/to/mysql/database_directory&quot; if you want the database somewhere other than /var/db/mysql.) For example:

    # mysql_install_db --user=mysql --datadir=/usr/local/var/db/mysql

But then you&#039;d also need to add a matching mysql_dbdir line in your rc.conf:

    # echo &quot;mysql_dbdir=\&quot;/usr/local/var/db/mysql\&quot;&quot; &gt;&gt; /etc/rc.conf</description>
		<content:encoded><![CDATA[<p>Thanks for this post! I couldn't remember the mysql_install_db bit. However, I think that if you add "--user=mysql" to the mysql_install_db command, it will set ownership correctly so you wouldn't need the chown command. (Also need "--datadir=/path/to/mysql/database_directory" if you want the database somewhere other than /var/db/mysql.) For example:</p>
<p>    # mysql_install_db --user=mysql --datadir=/usr/local/var/db/mysql</p>
<p>But then you'd also need to add a matching mysql_dbdir line in your rc.conf:</p>
<p>    # echo "mysql_dbdir=\"/usr/local/var/db/mysql\"" &gt;&gt; /etc/rc.conf</p>
]]></content:encoded>
	</item>
</channel>
</rss>

