<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tracy Phillips &#187; mysql</title>
	<atom:link href="http://tracyphillips.com/tag/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://tracyphillips.com</link>
	<description></description>
	<lastBuildDate>Tue, 27 Oct 2009 14:12:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Install MySQL 5.x on FreeBSD</title>
		<link>http://tracyphillips.com/2005/12/05/install-mysql-5x-on-freebsd/</link>
		<comments>http://tracyphillips.com/2005/12/05/install-mysql-5x-on-freebsd/#comments</comments>
		<pubDate>Mon, 05 Dec 2005 19:38:35 +0000</pubDate>
		<dc:creator>tracphil</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.tracyphillips.com/?p=9</guid>
		<description><![CDATA[Our little project for today is setting up MySQL on FreeBSD. Installing MySQL via the FreeBSD ports sytem is a fairly painless process. To get started login to your server with an SSH client and issue the following command. [server][root][~]# portinstall mysql-server You should be presented with different versions of MySQL to choose from. I [...]]]></description>
			<content:encoded><![CDATA[<p>Our little project for today is setting up <a href="http://www.mysql.com/">MySQL</a> on <a href="http://www.freebsd.org/">FreeBSD</a>. Installing MySQL via the FreeBSD ports sytem is a fairly painless process.</p>
<p>To get started login to your server with an SSH client and issue the following command.</p>
<pre>[server][root][~]# portinstall mysql-server</pre>
<p>You should be presented with different versions of MySQL to choose from. I chose to install the mysql50-server version. If you require a different version for some reason, then you will need to say "yes" to it instead.</p>
<p>Once everything gets compiled we need to setup a way to start MySQL when your server starts.</pre>
<pre>[server][root][~]# echo 'mysql_enable="YES"' >> /etc/rc.conf</pre>
<p>Lets go ahead and start mysql so we can go about setting up the MySQL <code>root</code> password.</p>
<pre>[server][root][~]# /usr/local/etc/rc.d/mysql-server.sh start</pre>
<p>Everything should have started up ok for you at this point. Lets go ahead an login at the MySQL root user.</p>
<pre>[server][root][~]# mysql -u root -p</pre>
<p>You will be prompted for a password, hit enter since we have not setup the password yet. Enter the following and be sure to replace <code>MyPassword</code> with the password of your choosing.</p>
<pre>SET PASSWORD FOR root@localhost=PASSWORD('MyPassword');</pre>
<p>Thats all there is to it. Lets exit MySQL now and log back in to make sure everything worked before we continue.</p>
<pre>exit</pre>
<p>Now lets log back in with our new password. When you are prompted for a password this time, be sure to use the password that you set above.</p>
<pre>[server][root][~]# mysql -u root -p</pre>
<p>Hopefully everything worked out. If it didn't your in trouble.. well not really, but that how to is for another day :)</p>
<p>Now lets delete user accounts that do not have a username or any passwords. Type each of the 3 following commands (while you are logged into mysql as the <code>root</code> user) to delete insecure accounts and then type exit.</p>
<pre>use mysql;
delete from user where user='';
delete from user where host='localhost.localdomain';</pre>
<p>And that's a wrap :)</p>
<p><u><strong>Rails Server Setup:</strong></u></p>
<p>Part 1: <a href="http://www.tracyphillips.com/2005/11/new-server-setup/">New Server Setup</a><br />
Part 2: <a href="http://www.tracyphillips.com/2005/11/setup-freebsd-6x-for-ruby-on-rails/">Setup FreeBSD 6.x</a><br />
Part 3: <a href="http://www.tracyphillips.com/2005/11/freebsd-usability/">FreeBSD Usability</a><br />
Part 4: <a href="http://www.tracyphillips.com/2005/11/setup-freebsd-to-use-blowfish/">Setup FreeBSD To Use Blowfish</a><br />
Part 5: <a href="http://www.tracyphillips.com/2005/12/install-and-setup-postgresql-on-freebsd/">Install and Setup PostgreSQL</a><br />
Part 6: <a href="http://www.tracyphillips.com/2005/12/install-lighttpd-on-freebsd/">Install Lighttpd on FreeBSD</a><br />
Part 7: Install MySQL 5.x on FreeBSD<br />
Part 8: <a href="http://www.tracyphillips.com/2005/12/ruby-on-rails-setup-with-freebsd/">Install Ruby On Rails with FreeBSD</a></p>
]]></content:encoded>
			<wfw:commentRss>http://tracyphillips.com/2005/12/05/install-mysql-5x-on-freebsd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Server Setup</title>
		<link>http://tracyphillips.com/2005/11/28/new-server-setup-2/</link>
		<comments>http://tracyphillips.com/2005/11/28/new-server-setup-2/#comments</comments>
		<pubDate>Mon, 28 Nov 2005 23:41:32 +0000</pubDate>
		<dc:creator>tracphil</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://www.tracyphillips.com/?p=22</guid>
		<description><![CDATA[I am going through the process of switching from a Linux server (CentOS to be exact) running DirectAdmin as the control panel to a FreeBSD server with no control panel for management. Since I do not have to build within the constraints of some other company's control panel, I thought I would install the best [...]]]></description>
			<content:encoded><![CDATA[<p>I am going through the process of switching from a Linux server (<a href="http://www.centos.org/">CentOS</a> to be exact) running <a href="http://www.directadmin.com">DirectAdmin</a> as the control panel to a <a href="http://www.freebsd.org/">FreeBSD</a> server with no control panel for management. Since I do not have to build within the constraints of some other company's control panel, I thought I would install the best of breed servers and applications.</p>
<p>The main components that I require to be installed are:</p.</p>
<p><a href="http://www.postgresql.org/">PostgreSQL</a><br />
<a href="http://www.lighttpd.net/">Lighttpd</a><br />
<a href="http://www.rubyonrails.org">Ruby On Rails</a><br />
<a href="http://subversion.tigris.org/">Subversion</a><br />
<a href="http://www.postfix.org/">Postfix</a><br />
<a href="http://www.dovecot.org/">Dovecot</a><br />
<a href="http://www.nuclearelephant.com/">Dspam</a></p>
<p>I will most likely do some more tweaking but at the moment that is the standard I wish to build against. I know for a fact that I will do some more "tweaking" such as setting up DNS RBLS, <a href="http://www.openspf.org/">SPF</a>, and maybe even Yahoo <a href="http://domainkeys.sourceforge.net/">Domain Keys</a> along with some good old postfix filtering for spam (can you tell I hate spam).<br />
The fist thing that I will get to (hopefully in the next post) will be setting up FreeBSD 6 and getting it ready to install applications onto.</p>
<p><u><strong>Rails Server Setup:</strong></u></p>
<p>Part 1: New Server Setup<br />
Part 2: <a href="http://www.tracyphillips.com/2005/11/setup-freebsd-6x-for-ruby-on-rails/">Setup FreeBSD 6.x</a><br />
Part 3: <a href="http://www.tracyphillips.com/2005/11/freebsd-usability/">FreeBSD Usability</a><br />
Part 4: <a href="http://www.tracyphillips.com/2005/11/setup-freebsd-to-use-blowfish.php">Setup FreeBSD To Use Blowfish</a><br />
Part 5: <a href="http://www.tracyphillips.com/2005/12/install-and-setup-postgresql-on-freebsd/">Install and Setup PostgreSQL</a><br />
Part 6: <a href="http://www.tracyphillips.com/2005/12/install-lighttpd-on-freebsd/">Install Lighttpd on FreeBSD</a><br />
Part 7: <a href="http://www.tracyphillips.com/2005/12/install-mysql-5x-on-freebsd/">Install MySQL 5.x on FreeBSD</a><br />
Part 8: <a href="http://www.tracyphillips.com/2005/12/ruby-on-rails-setup-with-freebsd.php">Install Ruby On Rails with FreeBSD</a></p>
]]></content:encoded>
			<wfw:commentRss>http://tracyphillips.com/2005/11/28/new-server-setup-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
