<?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>jaux.net &#187; sqlite</title>
	<atom:link href="http://jaux.net/tag/sqlite/feed/" rel="self" type="application/rss+xml" />
	<link>http://jaux.net</link>
	<description>Discovering this wonderful world...</description>
	<lastBuildDate>Fri, 06 Jan 2012 07:49:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>SQLite3: Unable to Open Database File</title>
		<link>http://jaux.net/2008/12/18/sqlite3-unable-to-open-database-file/</link>
		<comments>http://jaux.net/2008/12/18/sqlite3-unable-to-open-database-file/#comments</comments>
		<pubDate>Fri, 19 Dec 2008 02:52:32 +0000</pubDate>
		<dc:creator>jaux</dc:creator>
				<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[sqlite]]></category>

		<guid isPermaLink="false">http://jaux.net/?p=205</guid>
		<description><![CDATA[Recently, I&#8217;m working on my Skypiea project which is powered by SQLite3 and Python (as CGI script). Yesterday I encountered a program: When the web server ran a CGI script which would update the database, I got an error message &#8230; <a href="http://jaux.net/2008/12/18/sqlite3-unable-to-open-database-file/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Recently, I&#8217;m working on my <a href="http://jaux.net/my-works/project-skypiea/">Skypiea</a> project which is powered by SQLite3 and <a href="http://python.org">Python</a> (as CGI script). Yesterday I encountered a program: When the web server ran a CGI script which would update the database, I got an error message said &#8220;<strong>sqlite3.OperationalError: unable to open database file</strong>&#8220;.</p>
<p><a href="http://jaux.net/uploads/2008/12/sqlite.gif"><img src="http://jaux.net/uploads/2008/12/sqlite.gif" alt="" title="sqlite" width="327" height="97" class="aligncenter size-full wp-image-209" /></a></p>
<p>I searched the web and Google told me I need to specify <em>the <strong>full path</strong> (no ~ or $HOME etc.) of the database file</em> and the <em>web server needs the <strong>write permission</strong> to the file</em>. Sure, I actually had done both before the exception occurred.</p>
<p>Having being pissed for a while, I finally figured out what was wrong here: The web server needs the write permission to not only the database file, but also <em><strong>the containing directory</strong></em> of that file.</p>
<p>Yea, just simple like that.</p>
]]></content:encoded>
			<wfw:commentRss>http://jaux.net/2008/12/18/sqlite3-unable-to-open-database-file/feed/</wfw:commentRss>
		<slash:comments>40</slash:comments>
		</item>
	</channel>
</rss>

