<?xml version="1.0" encoding="UTF-8" ?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Posteet: données</title> 
    <link>http://www.posteet.com/</link> 
    <description>Recent posteets posted to Posteet</description>
    <ttl>60</ttl>

    
    <item>
        <title>Insérer un fichier SQL sur un serveur Apache Windows (dans Wamp ou EasyPhp)</title>
        <link>http://www.posteet.com/view/1280</link>
        <description>
        <![CDATA[<pre>Note : Dans tous les cas, ajouter l’option -p si un mot de passe est nécessaire après le nom du compte. Dans les exemples, on utilise le compte 'root'. ATTENTION : Il ne faut pas mettre d’espace entre l’option -p et le mot de passe.

Pour exporter avec l’utilitaire mysqldump.exe :

mysqldump -u root database &gt; backup-file.sql

Pour importer, cliquer &quot;démarrer/executer&quot;, puis taper ’cmd’. Ensuite lancer pour Wamp :

C:\&quot;Program Files&quot;\wamp\bin\mysql\mysql5.0.45\bin\mysql.exe -u root nom_de_la_base &lt; c:\fichier.sql</pre> <a href="http://www.posteet.com/tags/données">[données]</a>  <a href="http://www.posteet.com/tags/export">[export]</a>  <a href="http://www.posteet.com/tags/fichier">[fichier]</a>  <a href="http://www.posteet.com/tags/import">[import]</a>  <a href="http://www.posteet.com/tags/mysql">[mysql]</a>  <a href="http://www.posteet.com/tags/sql">[sql]</a> ]]>        </description>
        <dc:creator>cyo</dc:creator>
        <pubDate>Tue, 23 Sep 2008 13:33:21 +0000</pubDate>

            <category>données</category>
            <category>export</category>
            <category>fichier</category>
            <category>import</category>
            <category>mysql</category>
            <category>sql</category>
    
    </item>

  
    <item>
        <title>mysql_backup.sh</title>
        <link>http://www.posteet.com/view/125</link>
        <description>
        <![CDATA[<pre>#!/bin/bash

prefixe=backup
suffixe=$(date +%Y%m%d)
filename=$prefixe$suffixe.sql
host=host
database=database
user=user
characterSet=UTF8

mysqldump --skip-comments \
--complete-insert \
--default-character-set=$characterSet \
--no-create-info \
--skip-add-locks \
--skip-opt \
--host $host \
--user $user \
-p $database &gt; $filename

sed -i &quot;1iuse $database;\nSET CHARACTER SET '$characterSet';&quot; $filename
exit 0</pre> <a href="http://www.posteet.com/tags/backup">[backup]</a>  <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/data">[data]</a>  <a href="http://www.posteet.com/tags/données">[données]</a>  <a href="http://www.posteet.com/tags/mysql">[mysql]</a>  <a href="http://www.posteet.com/tags/sauvegarde">[sauvegarde]</a> ]]>        </description>
        <dc:creator>xavier</dc:creator>
        <pubDate>Sat, 03 Nov 2007 13:44:28 +0000</pubDate>

            <category>backup</category>
            <category>bash</category>
            <category>data</category>
            <category>données</category>
            <category>mysql</category>
            <category>sauvegarde</category>
    
    </item>


</channel>
</rss>
