<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Importing CSV Into MySQL</title>
	<atom:link href="http://www.v-nessa.net/2007/12/08/importing-csv-into-mysql/feed" rel="self" type="application/rss+xml" />
	<link>http://www.v-nessa.net/2007/12/08/importing-csv-into-mysql</link>
	<description>pink is the new black</description>
	<lastBuildDate>Thu, 26 Jan 2012 17:17:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Importing CSV Into MySQL [ V-Nessa ]</title>
		<link>http://www.v-nessa.net/2007/12/08/importing-csv-into-mysql/comment-page-1#comment-9371</link>
		<dc:creator>Importing CSV Into MySQL [ V-Nessa ]</dc:creator>
		<pubDate>Sun, 08 Jun 2008 10:50:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.v-nessa.net/2007/12/08/importing-csv-into-mysql#comment-9371</guid>
		<description>[...] 8th 2007 9:53pm  [-] From: v-nessa.net  [...]</description>
		<content:encoded><![CDATA[<p>[...] 8th 2007 9:53pm  [-] From: v-nessa.net  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nessa</title>
		<link>http://www.v-nessa.net/2007/12/08/importing-csv-into-mysql/comment-page-1#comment-9222</link>
		<dc:creator>Nessa</dc:creator>
		<pubDate>Thu, 10 Apr 2008 13:26:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.v-nessa.net/2007/12/08/importing-csv-into-mysql#comment-9222</guid>
		<description>that means that the path to your csv file is incorrect...try using the absolute path i.e /home/user/file.cav

FYI...dude, don&#039;t &#039;sir&#039; me.  I&#039;m a chick, at least I have been ever since my penis was removed.</description>
		<content:encoded><![CDATA[<p>that means that the path to your csv file is incorrect&#8230;try using the absolute path i.e /home/user/file.cav</p>
<p>FYI&#8230;dude, don&#8217;t &#8216;sir&#8217; me.  I&#8217;m a chick, at least I have been ever since my penis was removed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: khalandar</title>
		<link>http://www.v-nessa.net/2007/12/08/importing-csv-into-mysql/comment-page-1#comment-9221</link>
		<dc:creator>khalandar</dc:creator>
		<pubDate>Thu, 10 Apr 2008 10:31:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.v-nessa.net/2007/12/08/importing-csv-into-mysql#comment-9221</guid>
		<description>sir i am trying to upload my *.csv file into mysql. it showing file not found. can u able to explain me how can i solve this error</description>
		<content:encoded><![CDATA[<p>sir i am trying to upload my *.csv file into mysql. it showing file not found. can u able to explain me how can i solve this error</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://www.v-nessa.net/2007/12/08/importing-csv-into-mysql/comment-page-1#comment-9062</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Wed, 23 Jan 2008 13:07:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.v-nessa.net/2007/12/08/importing-csv-into-mysql#comment-9062</guid>
		<description>You don&#039;t have to have SQLyog installed on your MySQL server. Just install it on your local box and connect to your MySQL server from there. 

SQLyog is a lot easier to use (and has tons of other applications).</description>
		<content:encoded><![CDATA[<p>You don&#8217;t have to have SQLyog installed on your MySQL server. Just install it on your local box and connect to your MySQL server from there. </p>
<p>SQLyog is a lot easier to use (and has tons of other applications).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BinaryPhalanx</title>
		<link>http://www.v-nessa.net/2007/12/08/importing-csv-into-mysql/comment-page-1#comment-9061</link>
		<dc:creator>BinaryPhalanx</dc:creator>
		<pubDate>Wed, 23 Jan 2008 12:39:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.v-nessa.net/2007/12/08/importing-csv-into-mysql#comment-9061</guid>
		<description>First day with my new fingers :$</description>
		<content:encoded><![CDATA[<p>First day with my new fingers :$</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BinaryPhalanx</title>
		<link>http://www.v-nessa.net/2007/12/08/importing-csv-into-mysql/comment-page-1#comment-8863</link>
		<dc:creator>BinaryPhalanx</dc:creator>
		<pubDate>Mon, 10 Dec 2007 23:56:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.v-nessa.net/2007/12/08/importing-csv-into-mysql#comment-8863</guid>
		<description>the second and third $message = should be $message.=

//edited for spelling -- geez, do you post drunk or something?  :b</description>
		<content:encoded><![CDATA[<p>the second and third $message = should be $message.=</p>
<p>//edited for spelling &#8212; geez, do you post drunk or something?  :b</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BinaryPhalanx</title>
		<link>http://www.v-nessa.net/2007/12/08/importing-csv-into-mysql/comment-page-1#comment-8862</link>
		<dc:creator>BinaryPhalanx</dc:creator>
		<pubDate>Mon, 10 Dec 2007 23:55:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.v-nessa.net/2007/12/08/importing-csv-into-mysql#comment-8862</guid>
		<description>if (array_key_exists(&#039;file&#039;, $_POST)
{
  //upload the file in-line
  $url = curl_init(&quot;http://domain.com/upload.php&quot;);
  curl_setopt($url, CURLOPT_POST, $_POST[&#039;file&#039;]);
  $message = curl_exec($url)

  //process SQL import
  $mysqli = mysqli_connect(&quot;127.0.0.1&quot;, &quot;blah&quot;, &quot;blah&quot;, &quot;blah&quot;);
  $query = &quot;LOAD DATA LOCAL INFILE `/path/to/uploaded/file.csv` INTO TABLE `blah` FIELDS TERMINATED BY `,` ENCLOSED BY `&quot;` LINES TERMINATED BY &#039;\r\n&#039;;&quot;;
  if ($mysqli_query($query, $mysqli))
  {
    $message = &quot;Import successful&quot;;
  } else {
    //best error reporting ever
    $message = &quot;Error!&quot;
  }
} else {
  $message = &quot;&quot;;
}</description>
		<content:encoded><![CDATA[<p>if (array_key_exists(&#8216;file&#8217;, $_POST)<br />
{<br />
  //upload the file in-line<br />
  $url = curl_init(&#8220;http://domain.com/upload.php&#8221;);<br />
  curl_setopt($url, CURLOPT_POST, $_POST['file']);<br />
  $message = curl_exec($url)</p>
<p>  //process SQL import<br />
  $mysqli = mysqli_connect(&#8220;127.0.0.1&#8243;, &#8220;blah&#8221;, &#8220;blah&#8221;, &#8220;blah&#8221;);<br />
  $query = &#8220;LOAD DATA LOCAL INFILE `/path/to/uploaded/file.csv` INTO TABLE `blah` FIELDS TERMINATED BY `,` ENCLOSED BY `&#8221;` LINES TERMINATED BY &#8216;\r\n&#8217;;&#8221;;<br />
  if ($mysqli_query($query, $mysqli))<br />
  {<br />
    $message = &#8220;Import successful&#8221;;<br />
  } else {<br />
    //best error reporting ever<br />
    $message = &#8220;Error!&#8221;<br />
  }<br />
} else {<br />
  $message = &#8220;&#8221;;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BinaryPhalanx</title>
		<link>http://www.v-nessa.net/2007/12/08/importing-csv-into-mysql/comment-page-1#comment-8861</link>
		<dc:creator>BinaryPhalanx</dc:creator>
		<pubDate>Mon, 10 Dec 2007 23:54:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.v-nessa.net/2007/12/08/importing-csv-into-mysql#comment-8861</guid>
		<description>damnit, it didn&#039;t post any of that. I&#039;m sad now.</description>
		<content:encoded><![CDATA[<p>damnit, it didn&#8217;t post any of that. I&#8217;m sad now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BinaryPhalanx</title>
		<link>http://www.v-nessa.net/2007/12/08/importing-csv-into-mysql/comment-page-1#comment-8860</link>
		<dc:creator>BinaryPhalanx</dc:creator>
		<pubDate>Mon, 10 Dec 2007 23:54:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.v-nessa.net/2007/12/08/importing-csv-into-mysql#comment-8860</guid>
		<description>you can use that SQL query in a small PHP file with an HTML form if you do this often, to speed up the process a bit. Something like:













</description>
		<content:encoded><![CDATA[<p>you can use that SQL query in a small PHP file with an HTML form if you do this often, to speed up the process a bit. Something like:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nessa</title>
		<link>http://www.v-nessa.net/2007/12/08/importing-csv-into-mysql/comment-page-1#comment-8853</link>
		<dc:creator>Nessa</dc:creator>
		<pubDate>Sun, 09 Dec 2007 21:44:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.v-nessa.net/2007/12/08/importing-csv-into-mysql#comment-8853</guid>
		<description>The problem with SQLYog is that you  have to compile and install it (which only the root user can do), which can be a royal pain in the ass.  It&#039;s nice software, but I wouldn&#039;t go through that much trouble to import a CSV file when a few lines of code will do the trick.</description>
		<content:encoded><![CDATA[<p>The problem with SQLYog is that you  have to compile and install it (which only the root user can do), which can be a royal pain in the ass.  It&#8217;s nice software, but I wouldn&#8217;t go through that much trouble to import a CSV file when a few lines of code will do the trick.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

