<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title><![CDATA[MySQLSnippets: MySQL Snippets]]></title>
    <link>http://mashpile.comhttp://mashpile.com/notepad/12</link>
    <description><![CDATA[Snippet codes that helps me manage my MySQL database]]></description>
    <pubDate>Wed, 01 Dec 2010 22:27:25 +0000</pubDate>
    <generator>maspile</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <item>
      <title><![CDATA[Output MySQL as CSV file]]></title>
      <link>http://mashpile.com/note/67</link>
      <description><![CDATA[SELECT ... INTO OUTFILE '/tmp/mycsvfile.csv' FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY 'n';]]></description>
      <pubDate>Wed, 01 Dec 2010 22:27:25 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[Restoring from a MySQL dump file]]></title>
      <link>http://mashpile.com/note/56</link>
      <description><![CDATA[mysql -u USERNAME -p DATABASE < DUMPFILE.SQL]]></description>
      <pubDate>Sun, 16 May 2010 04:50:05 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[Disable foreign key check during a MySQL dump]]></title>
      <link>http://mashpile.com/note/40</link>
      <description><![CDATA[If your constantly having headaches dumping data to MySQL and it errors out because of foreign keys, you can do:SET FOREIGN_KEY_CHECKS=0;-- dump --SET FOREIGN_KEY_CHECKS=1; ]]></description>
      <pubDate>Mon, 10 May 2010 23:12:53 +0000</pubDate>
    </item>
  </channel>
</rss>

