<?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>Institutional Knowledge &#187; Databases</title>
	<atom:link href="http://blogs.csuchico.edu/ik/category/databases/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.csuchico.edu/ik</link>
	<description>Wherein we write down some stuff that we know.</description>
	<lastBuildDate>Mon, 24 Aug 2009 16:28:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9-rare</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Getting Cute with MySQL Backups</title>
		<link>http://blogs.csuchico.edu/ik/2007/02/20/getting-cute-with-mysql-backups/</link>
		<comments>http://blogs.csuchico.edu/ik/2007/02/20/getting-cute-with-mysql-backups/#comments</comments>
		<pubDate>Tue, 20 Feb 2007 16:44:12 +0000</pubDate>
		<dc:creator>pberry</dc:creator>
				<category><![CDATA[Databases]]></category>

		<guid isPermaLink="false">http://blogs.csuchico.edu/ik/2007/02/20/getting-cute-with-mysql-backups/</guid>
		<description><![CDATA[When you think you are being smart by only giving your backup user SELECT privileges, don&#8217;t forget that you also need to be able to LOCK TABLES to use some of the mysqldump features.

That is all.]]></description>
			<content:encoded><![CDATA[<p>When you think you are being smart by only giving your backup user <span class="caps">SELECT </span>privileges, don&#8217;t forget that you also need to be able to <span class="caps">LOCK TABLES </span>to use some of the mysqldump features.</p>

<p>That is all.</p>]]></content:encoded>
			<wfw:commentRss>http://blogs.csuchico.edu/ik/2007/02/20/getting-cute-with-mysql-backups/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Hilarity</title>
		<link>http://blogs.csuchico.edu/ik/2007/01/02/mysql-hilarity/</link>
		<comments>http://blogs.csuchico.edu/ik/2007/01/02/mysql-hilarity/#comments</comments>
		<pubDate>Wed, 03 Jan 2007 00:28:28 +0000</pubDate>
		<dc:creator>pberry</dc:creator>
				<category><![CDATA[Databases]]></category>

		<guid isPermaLink="false">http://blogs.csuchico.edu/ik/2007/01/02/mysql-hilarity/</guid>
		<description><![CDATA[Wherein we read documentation and then laugh heartily.]]></description>
			<content:encoded><![CDATA[<p>From the <a href="http://www.mysql.org/doc/refman/4.1/en/innodb-backup.html">InnoDB backup section</a> of the MySQL manual.</p>

<blockquote><p>In addition to making binary backups as just described, you should also regularly make dumps of your tables with mysqldump. The reason for this is that a binary file might be corrupted without you noticing it. Dumped tables are stored into text files that are human-readable, so spotting table corruption becomes easier.</p></blockquote>

<p>Ummmm, yeah&#8230;about that whole reading multi-megabyte text files to look for corrupted data&#8230;not gonna happen.</p>]]></content:encoded>
			<wfw:commentRss>http://blogs.csuchico.edu/ik/2007/01/02/mysql-hilarity/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Web Developers&#8217; Do&#8217;s and Dont&#8217;s</title>
		<link>http://blogs.csuchico.edu/ik/2006/03/02/web-developers-dos-and-donts/</link>
		<comments>http://blogs.csuchico.edu/ik/2006/03/02/web-developers-dos-and-donts/#comments</comments>
		<pubDate>Fri, 03 Mar 2006 02:16:40 +0000</pubDate>
		<dc:creator>sjungling</dc:creator>
				<category><![CDATA[Databases]]></category>

		<guid isPermaLink="false">http://fozzy.csuchico.edu/wordpress/2006/03/02/web-developers-dos-and-donts/</guid>
		<description><![CDATA[Do:



Routinely clear out old data from databases




Don&#8217;t



Let the size of your database get out of control


]]></description>
			<content:encoded><![CDATA[<p><strong>Do:</strong></p>


<ul>
<li>Routinely clear out old data from databases</li>
</ul>



<p><strong>Don&#8217;t</strong></p>


<ul>
<li>Let the size of your database get out of control</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blogs.csuchico.edu/ik/2006/03/02/web-developers-dos-and-donts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Crazy MySQL Problem</title>
		<link>http://blogs.csuchico.edu/ik/2006/02/24/crazy-mysql-problem/</link>
		<comments>http://blogs.csuchico.edu/ik/2006/02/24/crazy-mysql-problem/#comments</comments>
		<pubDate>Sat, 25 Feb 2006 06:14:53 +0000</pubDate>
		<dc:creator>pberry</dc:creator>
				<category><![CDATA[Databases]]></category>

		<guid isPermaLink="false">http://fozzy.csuchico.edu/wordpress/2006/02/24/crazy-mysql-problem/</guid>
		<description><![CDATA[Wherein we flush ghosts from the mysql shell.]]></description>
			<content:encoded><![CDATA[<p>So, one an older instance of mysql (3.23.58 to be exact) we recently came across a very odd permission problem which I haven&#8217;t encountered before.  Basically I created a database and then granted all privileges on the database and any of it&#8217;s tables to a user on the localhost identified by a password.</p>

<div class="igBar"><span id="lmysql-1"><a href="#" onclick="javascript:showCodeTxt('mysql-1'); return false;"><span class="caps">PLAIN TEXT</span></a></span></div><div class="syntax_hilite"><span class="langName">MySQL:</span><br /><div id="mysql-1">
<div class="mysql"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">mysql&gt; <span style="color: #993333; font-weight: bold;"><span class="caps">GRANT</span></span> all <span style="color: #993333; font-weight: bold;"><span class="caps">PRIVILEGES</span></span> on fakedb.* to fakeuser@localhost \</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">identified <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">&#8216;fakepassword&#8217;</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">mysql&gt; flush <span style="color: #993333; font-weight: bold;"><span class="caps">PRIVILEGES</span></span>; </div></li></ol></div>
</div></div><br />

<p>All afternoon I was getting <code>ERROR 1045: Access denied</code> and it was really starting to annoy me.  Of course, I just reset the password on the user and it works now.  Not cool.  Not cool at all.  Maybe the database was just running too hot and needed time to cool off.  Maybe it was the Flying Elves&#8482;.</p>]]></content:encoded>
			<wfw:commentRss>http://blogs.csuchico.edu/ik/2006/02/24/crazy-mysql-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle Instant Client, PHP and RHEL</title>
		<link>http://blogs.csuchico.edu/ik/2005/11/09/oracle-instant-client-php-and-rhel/</link>
		<comments>http://blogs.csuchico.edu/ik/2005/11/09/oracle-instant-client-php-and-rhel/#comments</comments>
		<pubDate>Wed, 09 Nov 2005 16:19:50 +0000</pubDate>
		<dc:creator>pberry</dc:creator>
				<category><![CDATA[Databases]]></category>

		<guid isPermaLink="false">http://fozzy.csuchico.edu/wordpress/2005/11/09/oracle-instant-client-php-and-rhel/</guid>
		<description><![CDATA[Wherein we compile php rpms with Oracle support.]]></description>
			<content:encoded><![CDATA[<div class="igBar"><span id="lcode-2"><a href="#" onclick="javascript:showCodeTxt('code-2'); return false;"><span class="caps">PLAIN TEXT</span></a></span></div><div class="syntax_hilite"><span class="langName"><span class="caps">CODE</span>:</span><br /><div id="code-2">
<div class="code"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">up2date &#8212;get-source php</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">rpmbuild &#8212;rebuild &#8212;define <span style="color:#CC0000;">&#8216;oracle 1&#8217;</span> php-<span style="color:#800000;color:#800000;">4</span>.<span style="color:#800000;color:#800000;">3</span>.<span style="color:#800000;color:#800000;">2</span>-<span style="color:#800000;color:#800000;">25</span>.<span style="">ent</span>.<span style="">src</span>.<span style="">rpm</span> </div></li></ol></div>
</div></div><br />

<p>You would think I would be able to find those incredibly simple steps somewhere other than the spec file for RedHat Enterprise Linux php.</p>

<p>I&#8217;m just sayin&#8217;&#8230;</p>

<p>PS &#8212; up2date will dump the src.rpm is /var/spool/up2date</p>

<p><span class="caps">PPS </span>&#8212; You would think I would be smart enough to remember to specify `&#8212;target=i686`.  You would, of course, be wrong.</p>]]></content:encoded>
			<wfw:commentRss>http://blogs.csuchico.edu/ik/2005/11/09/oracle-instant-client-php-and-rhel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle, You Are Mine!</title>
		<link>http://blogs.csuchico.edu/ik/2005/11/08/oracle-you-are-mine/</link>
		<comments>http://blogs.csuchico.edu/ik/2005/11/08/oracle-you-are-mine/#comments</comments>
		<pubDate>Wed, 09 Nov 2005 00:30:26 +0000</pubDate>
		<dc:creator>pberry</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://fozzy.csuchico.edu/wordpress/2005/11/08/oracle-you-are-mine/</guid>
		<description><![CDATA[Wherein we tie ruby to Oracle.]]></description>
			<content:encoded><![CDATA[<p>Going through the Enterprise Ruby book I noticed that the first database they talk about is Oracle.  So I figured I might as well bite the bullet and get at least one language on my development box (Java not included, <span class="caps">JDBC </span>has always worked just fine) working with the Oracle Instant Client.</p>

<p>I thought I had everything installed correctly but I still wasn&#8217;t able to connect, even with sqlplus.  Turns out it wasn&#8217;t <em>entirely</em> my fault.  Word from the <span class="caps">DBA </span>was:</p>

<blockquote><p>Oracle&#8217;s &#8220;Easy Connection Identifier&#8221; isn&#8217;t easy and doesn&#8217;t work as listed.</p></blockquote>

<p>So there.  Anyway, everything is working with ruby and the <a href="http://rubyforge.org/projects/ruby-oci8">oci8</a> module.  w00t!</p>]]></content:encoded>
			<wfw:commentRss>http://blogs.csuchico.edu/ik/2005/11/08/oracle-you-are-mine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
