<?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>Blog.hio.fr &#187; mysql</title>
	<atom:link href="http://blog.hio.fr/category/dev/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.hio.fr</link>
	<description></description>
	<lastBuildDate>Wed, 30 Jun 2010 09:16:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>MySQL Les différents moteurs de stockage</title>
		<link>http://blog.hio.fr/2009/03/04/mysql-les-differents-moteurs-de-stockage/</link>
		<comments>http://blog.hio.fr/2009/03/04/mysql-les-differents-moteurs-de-stockage/#comments</comments>
		<pubDate>Wed, 04 Mar 2009 12:26:02 +0000</pubDate>
		<dc:creator>HiO</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://blog.hio.fr/?p=136</guid>
		<description><![CDATA[Un article tres interressant sur MySQL et ses differents moteurs de stockage.]]></description>
			<content:encoded><![CDATA[<p>Un article tres interressant sur MySQL et ses differents moteurs de stockage.</p>
<blockquote><p>MySQL, contrairement aux autres SGBD, a la possibilité d&#8217;utiliser plusieurs moteurs de stockage dans une seule et même base de données. Cette faculté constitue un des points forts de MySQL. Cet article a pour but de vous montrer ce qui se cache derrière ces différents moteurs et comment les exploiter au mieux.</p>
<p><a href="http://sony-noel.developpez.com/tutorials/mysql/moteurs/?page=myisamroot" target="_blank">Source</a></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.hio.fr/2009/03/04/mysql-les-differents-moteurs-de-stockage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Script bash pour dumper une db</title>
		<link>http://blog.hio.fr/2009/03/03/mysql-script-bash-pour-dumper-une-db/</link>
		<comments>http://blog.hio.fr/2009/03/03/mysql-script-bash-pour-dumper-une-db/#comments</comments>
		<pubDate>Tue, 03 Mar 2009 21:08:27 +0000</pubDate>
		<dc:creator>HiO</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[dump]]></category>

		<guid isPermaLink="false">http://blog.hio.fr/?p=120</guid>
		<description><![CDATA[Voila un ptit script pratique pour dumper une db et la compresser ^^]]></description>
			<content:encoded><![CDATA[<p>Voila un ptit script pratique pour dumper une db et la compresser ^^</p>
<p><strong>mysqldump.sh</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
&nbsp;
<span style="color: #007800;">tar_args</span>=<span style="color: #ff0000;">'-czf'</span>
<span style="color: #007800;">tmpdir</span>=<span style="color: #ff0000;">'/tmp'</span>
<span style="color: #007800;">mysqldump_args</span>=<span style="color: #ff0000;">'--user=root --password=password -c'</span>
&nbsp;
mysqldump <span style="color: #007800;">$mysqldump_args</span> $<span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #007800;">$tmpdir</span><span style="color: #000000; font-weight: bold;">/</span>$1.sql
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #000000; font-weight: bold;">!</span> <span style="color: #660033;">-d</span> $<span style="color: #000000;">2</span>
    <span style="color: #000000; font-weight: bold;">then</span>
    <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'output dir does not exists'</span>;
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #660033;">-f</span> <span style="color: #007800;">$tmpdir</span><span style="color: #000000; font-weight: bold;">/</span>$1.sql
    <span style="color: #000000; font-weight: bold;">then</span>
    <span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #007800;">$tar_args</span> $<span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">/</span>$1.tar.gz <span style="color: #007800;">$tmpdir</span><span style="color: #000000; font-weight: bold;">/</span>$1.sql <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #007800;">$tmpdir</span><span style="color: #000000; font-weight: bold;">/</span>$1.sql
<span style="color: #000000; font-weight: bold;">fi</span></pre></td></tr></table></div>

<p><strong>Utilisation</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>mysqldump.sh wordpress <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>hio<span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

<p><strong>Explication</strong><br />
Premier argument = nom de la db<br />
Deuxieme argument = Repertoire qui contiendra la db dans un tar.gz</p>
<p>On trouvera donc un wordpress.tar.gz dans /home/hio/</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">hio<span style="color: #000000; font-weight: bold;">@</span>phpoulpe:<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>hio<span style="color: #666666; font-style: italic;"># ls -l /home/hio/wordpress.tar.gz</span>
<span style="color: #660033;">-rw-r--r--</span> <span style="color: #000000;">1</span> hio hio <span style="color: #000000;">78423</span> mar  <span style="color: #000000;">3</span> <span style="color: #000000;">22</span>:05 <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>hio<span style="color: #000000; font-weight: bold;">/</span>wordpress.tar.gz</pre></div></div>

<p>Simple, pratique et efficace ^^</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hio.fr/2009/03/03/mysql-script-bash-pour-dumper-une-db/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
