<?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>cegamers.com &#187; grepolis mysql</title> <atom:link href="http://cegamers.com/tag/grepolis-mysql/feed/" rel="self" type="application/rss+xml" /><link>http://cegamers.com</link> <description>A Casual Entertainment Games Gamers Community</description> <lastBuildDate>Mon, 21 May 2012 16:39:22 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>Grepolis World Data and mySQL</title><link>http://cegamers.com/innogames-2/grepolis/grepolis-world-data-and-mysql/</link> <comments>http://cegamers.com/innogames-2/grepolis/grepolis-world-data-and-mysql/#comments</comments> <pubDate>Wed, 17 Feb 2010 11:48:25 +0000</pubDate> <dc:creator>mdshare</dc:creator> <category><![CDATA[Grepolis]]></category> <category><![CDATA[browser game]]></category> <category><![CDATA[browsergames]]></category> <category><![CDATA[grepolis mysql]]></category> <category><![CDATA[grepolis script]]></category> <category><![CDATA[grepolis world data]]></category> <category><![CDATA[grepolis worlddata]]></category> <category><![CDATA[innogames]]></category> <guid
isPermaLink="false">http://cegamers.com/?p=247</guid> <description><![CDATA[With the following command to the field names in JSON go, via sed to replace the identifiers including colon with an empty string. Here for players.json file: sed -i 's/"id":\&#124;"name":\&#124;"alliance_id":\&#124;"points":\&#124;"rank":\&#124;"towns"://g' players.json SQL syntax to load the data into a mySQL database LOAD DATA INFILE 'players2.json' INTO TABLE players FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY [...]]]></description> <content:encoded><![CDATA[<p>With the following command to the field names in JSON go, via sed to replace the identifiers including colon with an empty string.</p><p>Here for players.json file:</p><blockquote><p><code>sed -i 's/"id":\|"name":\|"alliance_id":\|"points":\|"rank":\|"towns"://g' players.json</code></p></blockquote><p>SQL syntax to load the data into a mySQL database</p><blockquote><p><code>LOAD DATA INFILE 'players2.json' INTO TABLE players FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES STARTING BY '{' TERMINATED BY '}';</code></p></blockquote><p>Excellent FREE hosting for your Grepolis stats project can be found <a
target="_blank" rel="nofollow" href="http://cegamers.com/goto/http://www.makewebgames.com/news-and-announcements/30875-free-web-hosting-is-really-free-no-hidden-fees-no-credit-card-or-other-deposit-required/" >here</a></p> ]]></content:encoded> <wfw:commentRss>http://cegamers.com/innogames-2/grepolis/grepolis-world-data-and-mysql/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
