<?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>Thomas Falkner &#187; mysql</title>
	<atom:link href="http://blog.thomas-falkner.de/tag/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.thomas-falkner.de</link>
	<description>Marginalien zu  Linux, Webdesign und Softwareentwicklung</description>
	<lastBuildDate>Sun, 24 Apr 2011 12:11:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>OpenGeoDB PLZ einem Ort zuordnen</title>
		<link>http://blog.thomas-falkner.de/2010/11/15/opengeodb-plz-einem-ort-zuordnen/</link>
		<comments>http://blog.thomas-falkner.de/2010/11/15/opengeodb-plz-einem-ort-zuordnen/#comments</comments>
		<pubDate>Mon, 15 Nov 2010 20:34:27 +0000</pubDate>
		<dc:creator>Thomas Falkner</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[opengeodb]]></category>
		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://blog.thomas-falkner.de/?p=279</guid>
		<description><![CDATA[SELECT plz.loc_id, plz.text_val, ort.text_val FROM `geodb_textdata` AS plz RIGHT JOIN (SELECT loc_id, text_val, text_type FROM `geodb_textdata` WHERE text_type = 500100000) AS ort ON plz.loc_id = ort.loc_id WHERE plz.text_type = 500300000]]></description>
			<content:encoded><![CDATA[<pre name="code" class="mysql">
SELECT plz.loc_id,
       plz.text_val,
       ort.text_val
FROM `geodb_textdata` AS plz
RIGHT JOIN
  (SELECT loc_id, text_val, text_type
   FROM `geodb_textdata`
   WHERE text_type = 500100000) AS ort ON plz.loc_id = ort.loc_id
WHERE plz.text_type = 500300000
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.thomas-falkner.de/2010/11/15/opengeodb-plz-einem-ort-zuordnen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TurboDbAdmin, die Web 2.0 Alternative zu phpMyAdmin</title>
		<link>http://blog.thomas-falkner.de/2007/09/30/turbodbadmin-die-web-20-alternative-zu-phpmyadmin/</link>
		<comments>http://blog.thomas-falkner.de/2007/09/30/turbodbadmin-die-web-20-alternative-zu-phpmyadmin/#comments</comments>
		<pubDate>Sun, 30 Sep 2007 19:50:39 +0000</pubDate>
		<dc:creator>Thomas Falkner</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://blog.thomas-falkner.de/2007/09/30/turbodbadmin-die-web-20-alternative-zu-phpmyadmin/</guid>
		<description><![CDATA[TruboDbAdmin versprich eine interessante Alternative zu phpMyAdmin zu werden. Zwar kann TurboDbAdmin noch nicht mit dem Funktionsumfang von phpMyAdmin gleichziehen, jedoch bietet es dank extensiven Einsatz von AJAX-Technologie einen wesentlich h&#246;heren Komfort.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.turboajax.com/products/turbodbadmin/">TruboDbAdmin</a> versprich eine interessante Alternative zu <a href="http://www.phpmyadmin.net/home_page/index.php">phpMyAdmin</a> zu werden. Zwar kann TurboDbAdmin noch nicht mit dem Funktionsumfang von phpMyAdmin gleichziehen, jedoch bietet es dank extensiven Einsatz von AJAX-Technologie einen wesentlich h&#246;heren Komfort.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.thomas-falkner.de/2007/09/30/turbodbadmin-die-web-20-alternative-zu-phpmyadmin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>MySQL mit Ruby unter Mac OS X</title>
		<link>http://blog.thomas-falkner.de/2007/06/18/mysql-mit-ruby-unter-mac-os-x/</link>
		<comments>http://blog.thomas-falkner.de/2007/06/18/mysql-mit-ruby-unter-mac-os-x/#comments</comments>
		<pubDate>Sun, 17 Jun 2007 22:24:02 +0000</pubDate>
		<dc:creator>Thomas Falkner</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[programmieren]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://blog.thomas-falkner.de/2007/06/18/mysql-mit-ruby-unter-mac-os-x/</guid>
		<description><![CDATA[M&#246;chte man eine MySQL-Datenbank mit Ruby ansprechen, muss unter UNIX-artigen Betriebsystemen den Datenbanktreiber manuell kompilieren. Dazu gen&#252;gt es die jeweils aktuelle Version von http://www.tmtm.org/downloads/mysql/ruby/ zu laden und zu kompilieren. Derzeit aktuell ist Version 2.7.3 . Das Archiv ist mit tar xzvf mysql-ruby-2.7.3.tar.gz schnell entpackt. Danach wechseln wir ins Verzeichnis mysql-ruby-2.7.3 konfigurieren das Modul: sudo ruby [...]]]></description>
			<content:encoded><![CDATA[<p>M&#246;chte man eine MySQL-Datenbank mit Ruby ansprechen, muss unter UNIX-artigen Betriebsystemen den Datenbanktreiber manuell kompilieren.<br />
Dazu gen&#252;gt es die jeweils aktuelle Version von <a href="http://www.tmtm.org/downloads/mysql/ruby/">http://www.tmtm.org/downloads/mysql/ruby/</a> zu laden und zu kompilieren. Derzeit aktuell ist Version <a href="http://www.tmtm.org/downloads/mysql/ruby/mysql-ruby-2.7.3.tar.gz">2.7.3 </a>.</p>
<p>Das Archiv ist mit <code>tar xzvf mysql-ruby-2.7.3.tar.gz</code> schnell entpackt. Danach wechseln wir ins Verzeichnis <code>mysql-ruby-2.7.3</code> konfigurieren das Modul: </p>
<p><code>sudo ruby extconf.rb --with-mysql-include=/usr/local/mysql/include --with-mysql-lib=/usr/local/mysql/lib --with-mysql-dir=/usr/local/mysql  --with-mysql-config=/usr/local/mysql/bin/mysql_config</code></p>
<p>Ich habe MySQL unter <code>/usr/local/mysql</code> installiert - der Pfad muss unter Umst&#228;nden angepasst werden. Wo MySQL installiert ist, l&#228;sst sich z.B. mit einem <code>which mysql</code> in Erfahrung bringen.</p>
<p>Der bekannte Einzeiler <code>sudo make &#038;& make install</code> erledigen den Rest. </p>
<p>Mit einem kleinen Script l&#228;sst sich die Installation testen:</p>
<div class="igBar"><span id="lruby-2"><a href="#" onclick="javascript:showPlainTxt('ruby-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">RUBY:</span>
<div id="ruby-2">
<div class="ruby">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:PROJECT;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">"mysql"</span></div>
</li>
<li style="font-weight: bold;color:PROJECT;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#9966CC; font-weight:bold;">begin</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:PROJECT;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; Mysql.<span style="color:#9900CC;">new</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">"localhost"</span>,<span style="color:#996600;">"dbuser"</span>,<span style="color:#996600;">"geheim"</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:PROJECT;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color:#CC0066; font-weight:bold;">puts</span> <span style="color:#996600;">"Klappt! <img src='http://blog.thomas-falkner.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> "</span> </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:PROJECT;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#9966CC; font-weight:bold;">rescue</span> StandardError</div>
</li>
<li style="font-weight: bold;color:PROJECT;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color:#CC0066; font-weight:bold;">puts</span> <span style="color:#996600;">"Klappt nicht. <img src='http://blog.thomas-falkner.de/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> "</span>&nbsp; &nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:PROJECT;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#9966CC; font-weight:bold;">end</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.thomas-falkner.de/2007/06/18/mysql-mit-ruby-unter-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MyISAM Tabellen reparieren</title>
		<link>http://blog.thomas-falkner.de/2007/04/11/myisam-tabellen-reparieren/</link>
		<comments>http://blog.thomas-falkner.de/2007/04/11/myisam-tabellen-reparieren/#comments</comments>
		<pubDate>Wed, 11 Apr 2007 10:42:18 +0000</pubDate>
		<dc:creator>Thomas Falkner</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://blog.thomas-falkner.de/2007/04/11/myisam-tabellen-reparieren/</guid>
		<description><![CDATA[MyISAM Tabellen arbeiten nicht transaktionsorientiert und k&#246;nnen besch&#228;digt werden, zum Beispiel wenn mysqld w&#228;hrend eines Schreibzugriffs gewaltsam beendet wurde, ein Hardwarefehler vorliegt und &#228;hnliche Katastrophen. Aufmerksam auf ein solches Problem macht neben unvollst&#228;ndigen oder fehlerhaften Ergebnissen einer Datenbankabfrage die Fehlermeldung: Incorrect key file for table: '...'. Try to repair it In der Regel lassen sich [...]]]></description>
			<content:encoded><![CDATA[<p>MyISAM Tabellen arbeiten nicht transaktionsorientiert und k&#246;nnen besch&#228;digt werden, zum Beispiel wenn <tt>mysqld</tt> w&#228;hrend eines Schreibzugriffs gewaltsam beendet wurde, ein Hardwarefehler vorliegt und &#228;hnliche Katastrophen. Aufmerksam auf ein solches Problem macht  neben unvollst&#228;ndigen oder fehlerhaften Ergebnissen einer Datenbankabfrage die Fehlermeldung:</p>
<blockquote><p>Incorrect key file for table: '...'. Try to repair it</p></blockquote>
<p>In der Regel lassen sich die besch&#228;digten Tabellen mit <tt>repair table your_table;</tt> wieder in einen definierten Zustand versetzen. Wenn es schlecht l&#228;uft, k&#246;nnen aber auch einzelne Datens&#228;tze dabei zerst&#246;rt werden. Kluge Menschen halten darum ein t&#228;gliches Backup ihrer Datenbank vor. <img src='http://blog.thomas-falkner.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Wenn Datenbanktabellen ohne erkennbaren Grund (zum Beispiel Strom- oder Hardwareausfall) &#246;fters besch&#228;digt werden, ist gut beraten die Serverkonfiguration genauer zu untersuchen oder den Hoster zu wechseln. </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.thomas-falkner.de/2007/04/11/myisam-tabellen-reparieren/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

