<?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: Import CSV file directly into MySQL</title>
	<atom:link href="http://www.tech-recipes.com/rx/2345/import_csv_file_directly_into_mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tech-recipes.com/rx/2345/import_csv_file_directly_into_mysql/</link>
	<description>Computer and technology tutorials and guides</description>
	<lastBuildDate>Thu, 09 Feb 2012 21:01:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: ravi</title>
		<link>http://www.tech-recipes.com/rx/2345/import_csv_file_directly_into_mysql/comment-page-2/#comment-53188</link>
		<dc:creator>ravi</dc:creator>
		<pubDate>Wed, 11 Jan 2012 05:57:23 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-53188</guid>
		<description>Thank you very much buddy, in my case... working perfectly ... 


Thanks
ravi</description>
		<content:encoded><![CDATA[<p>Thank you very much buddy, in my case&#8230; working perfectly &#8230; </p>
<p>Thanks<br />
ravi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shane</title>
		<link>http://www.tech-recipes.com/rx/2345/import_csv_file_directly_into_mysql/comment-page-2/#comment-53025</link>
		<dc:creator>Shane</dc:creator>
		<pubDate>Wed, 04 Jan 2012 17:15:26 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-53025</guid>
		<description>Thanks a lot for that post. I&#039;ve used this method successfully offline. Now I&#039;m trying to take my offline database and put it on my hosted server. When I run that coding on the server and reference it to the CSV on my computer, it obviously can&#039;t access it. More troubling is that even if I upload the CSV file onto the server, MySQL still can&#039;t access it:

LOAD DATA INFILE &quot;.db_upload/shane.csv&quot;
INTO TABLE new_table
FIELDS TERMINATED BY &quot;,&quot;
OPTIONALLY ENCLOSED BY &quot;&quot;&quot;&quot;
LINES TERMINATED BY &quot;\r\n&quot;

Any ideas on how to get an offline database onto a hosted server, by this method or any other?

Thanks!</description>
		<content:encoded><![CDATA[<p>Thanks a lot for that post. I&#8217;ve used this method successfully offline. Now I&#8217;m trying to take my offline database and put it on my hosted server. When I run that coding on the server and reference it to the CSV on my computer, it obviously can&#8217;t access it. More troubling is that even if I upload the CSV file onto the server, MySQL still can&#8217;t access it:</p>
<p>LOAD DATA INFILE &#8220;.db_upload/shane.csv&#8221;<br />
INTO TABLE new_table<br />
FIELDS TERMINATED BY &#8220;,&#8221;<br />
OPTIONALLY ENCLOSED BY &#8220;&#8221;"&#8221;<br />
LINES TERMINATED BY &#8220;\r\n&#8221;</p>
<p>Any ideas on how to get an offline database onto a hosted server, by this method or any other?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Parthiban</title>
		<link>http://www.tech-recipes.com/rx/2345/import_csv_file_directly_into_mysql/comment-page-2/#comment-52337</link>
		<dc:creator>Parthiban</dc:creator>
		<pubDate>Tue, 06 Dec 2011 06:36:13 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-52337</guid>
		<description>Thank you. It is worked..</description>
		<content:encoded><![CDATA[<p>Thank you. It is worked..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luis Reis</title>
		<link>http://www.tech-recipes.com/rx/2345/import_csv_file_directly_into_mysql/comment-page-2/#comment-51493</link>
		<dc:creator>Luis Reis</dc:creator>
		<pubDate>Wed, 09 Nov 2011 22:37:41 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-51493</guid>
		<description>Hello

I got one problem when I import data with special characters
I got one txt file coded in windows(ansi) and when do the import with this command, gives errors where the data have special characters,

Some like &quot;Ílhavo&quot; gives this error

 Incorrect string value: &#039;\xD6lhavo...&#039; for column &#039;DESIG&#039; at row 5

and do not import this record</description>
		<content:encoded><![CDATA[<p>Hello</p>
<p>I got one problem when I import data with special characters<br />
I got one txt file coded in windows(ansi) and when do the import with this command, gives errors where the data have special characters,</p>
<p>Some like &#8220;Ílhavo&#8221; gives this error</p>
<p> Incorrect string value: &#8216;\xD6lhavo&#8230;&#8217; for column &#8216;DESIG&#8217; at row 5</p>
<p>and do not import this record</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://www.tech-recipes.com/rx/2345/import_csv_file_directly_into_mysql/comment-page-2/#comment-49925</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Mon, 26 Sep 2011 02:20:31 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-49925</guid>
		<description>This was so helpful. If your on a Mac and your using the MySQL Workbench. Here is what I placed in my Query:
load data local infile &#039;/Users/MarkDickinson/Documents/Saddleback Resources/RKW Database/RKW_weeklys.csv&#039; into table rkw2011.weeklys
fields terminated by &#039;,&#039;
enclosed by &#039;&quot;&#039;
lines terminated by &#039;\n&#039;
(weekly_id, date, ip_number, title, series_title, author, 057_cd, 056_tape, 049_dat, 003_transcript, 008_outline, 059_note, 060_tio, 027_s_master_wav_audio, 012_mp3, 041_vhs, 042_vhs, 046_beta, 058_pro_res, podcasts, media_center)

Best of luck!</description>
		<content:encoded><![CDATA[<p>This was so helpful. If your on a Mac and your using the MySQL Workbench. Here is what I placed in my Query:<br />
load data local infile &#8216;/Users/MarkDickinson/Documents/Saddleback Resources/RKW Database/RKW_weeklys.csv&#8217; into table rkw2011.weeklys<br />
fields terminated by &#8216;,&#8217;<br />
enclosed by &#8216;&#8221;&#8216;<br />
lines terminated by &#8216;\n&#8217;<br />
(weekly_id, date, ip_number, title, series_title, author, 057_cd, 056_tape, 049_dat, 003_transcript, 008_outline, 059_note, 060_tio, 027_s_master_wav_audio, 012_mp3, 041_vhs, 042_vhs, 046_beta, 058_pro_res, podcasts, media_center)</p>
<p>Best of luck!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maan</title>
		<link>http://www.tech-recipes.com/rx/2345/import_csv_file_directly_into_mysql/comment-page-2/#comment-49360</link>
		<dc:creator>Maan</dc:creator>
		<pubDate>Tue, 06 Sep 2011 15:02:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-49360</guid>
		<description>load data local infile &#039;uniq.csv&#039; into table tblUniq
fields terminated by &#039;,&#039;
enclosed by &#039;&quot;&#039;
lines terminated by &#039;\n&#039;
(uniqName, uniqCity, uniqComments)</description>
		<content:encoded><![CDATA[<p>load data local infile &#8216;uniq.csv&#8217; into table tblUniq<br />
fields terminated by &#8216;,&#8217;<br />
enclosed by &#8216;&#8221;&#8216;<br />
lines terminated by &#8216;\n&#8217;<br />
(uniqName, uniqCity, uniqComments)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Keira Heu-Jwyn Chang</title>
		<link>http://www.tech-recipes.com/rx/2345/import_csv_file_directly_into_mysql/comment-page-2/#comment-34105</link>
		<dc:creator>Keira Heu-Jwyn Chang</dc:creator>
		<pubDate>Tue, 09 Aug 2011 18:05:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-34105</guid>
		<description>I was having the same problem and my line terminator ended up being &#039;r&#039; but some others might be &#039;rn&#039;</description>
		<content:encoded><![CDATA[<p>I was having the same problem and my line terminator ended up being &#8216;r&#8217; but some others might be &#8216;rn&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mandeep</title>
		<link>http://www.tech-recipes.com/rx/2345/import_csv_file_directly_into_mysql/comment-page-2/#comment-34008</link>
		<dc:creator>Mandeep</dc:creator>
		<pubDate>Fri, 05 Aug 2011 10:21:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-34008</guid>
		<description>update `table_name` set `feild_name1` = &#039;$variable1&#039; , `feild_name2` = &#039;$variable2&#039;;</description>
		<content:encoded><![CDATA[<p>update `table_name` set `feild_name1` = &#8216;$variable1&#8242; , `feild_name2` = &#8216;$variable2&#8242;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mandeep</title>
		<link>http://www.tech-recipes.com/rx/2345/import_csv_file_directly_into_mysql/comment-page-2/#comment-34002</link>
		<dc:creator>Mandeep</dc:creator>
		<pubDate>Fri, 05 Aug 2011 10:19:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-34002</guid>
		<description>$data = fgetcsv($filename,1000,&#039;,&#039;)</description>
		<content:encoded><![CDATA[<p>$data = fgetcsv($filename,1000,&#8217;,')</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jary Hernandez</title>
		<link>http://www.tech-recipes.com/rx/2345/import_csv_file_directly_into_mysql/comment-page-2/#comment-33832</link>
		<dc:creator>Jary Hernandez</dc:creator>
		<pubDate>Wed, 27 Jul 2011 16:42:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-33832</guid>
		<description>The same, happens to me. Do you know how can I solve this problems. Please if you can help me you can send me an email at jary.hernandez@gmail.com. Thanks!!</description>
		<content:encoded><![CDATA[<p>The same, happens to me. Do you know how can I solve this problems. Please if you can help me you can send me an email at <a href="mailto:jary.hernandez@gmail.com">jary.hernandez@gmail.com</a>. Thanks!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached (User agent is rejected)
Database Caching 3/15 queries in 1.005 seconds using memcached
Object Caching 419/419 objects using memcached

Served from: www.tech-recipes.com @ 2012-02-10 04:01:07 -->
