<?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>Prune&#039;s Blog &#187; Mysql</title>
	<atom:link href="http://www.lecentre.net/blog/archives/category/database/mysql/feed" rel="self" type="application/rss+xml" />
	<link>http://www.lecentre.net/blog</link>
	<description>Internet, UNIX, Video, Leisure...</description>
	<lastBuildDate>Thu, 19 Jan 2012 20:38:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Mysql Reminder : csv export</title>
		<link>http://www.lecentre.net/blog/archives/683</link>
		<comments>http://www.lecentre.net/blog/archives/683#comments</comments>
		<pubDate>Wed, 28 Jan 2009 15:10:15 +0000</pubDate>
		<dc:creator>Prune</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[UNIX]]></category>

		<guid isPermaLink="false">http://www.lecentre.net/blog/?p=683</guid>
		<description><![CDATA[I was asked to export some data in a csv format from a Mysql database. I&#8217;m just putting it here as a reminder&#8230; Thank you so much my blog to extend my brain capacity so much ! SELECT * INTO OUTFILE '/tmp/result.csv' FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '\n' FROM [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.lecentre.net/blog/wp-content/uploads/2009/01/logo_mysql_sun_a.gif"><img class="alignleft size-full wp-image-684" title="logo_mysql_sun_a" src="http://www.lecentre.net/blog/wp-content/uploads/2009/01/logo_mysql_sun_a.gif" alt="logo_mysql_sun_a" width="114" height="68" /></a></p>
<p>I was asked to export some data in a csv format from a Mysql database. I&#8217;m just putting it here as a reminder&#8230; Thank you so much my blog to extend my brain capacity so much !</p>
<pre lang="SQL">SELECT * INTO OUTFILE '/tmp/result.csv' FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '\n' FROM dc_account_key WHERE created_at > '2009-01-09' AND active = 0;</pre>
<p>I won&#8217;t explain this, it&#8217;s really straitforward. This is just a reminder, after all.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lecentre.net/blog/archives/683/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Building MacPorts Py-Mysql on Leopard</title>
		<link>http://www.lecentre.net/blog/archives/235</link>
		<comments>http://www.lecentre.net/blog/archives/235#comments</comments>
		<pubDate>Fri, 15 Feb 2008 21:46:24 +0000</pubDate>
		<dc:creator>Prune</dc:creator>
				<category><![CDATA[Django]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://www.lecentre.net/blog/archives/235</guid>
		<description><![CDATA[If you installed over your old Tiger or if you are new user, you may have experienced errors when trying to build py-mysql.Py-mysql is a Python module to connect to Mysql.I&#8217;m using it to have Django, the Python Web Framework, to connect to Mysql database. This is what I got when trying to install :   # [...]]]></description>
			<content:encoded><![CDATA[<p>If you installed over your old Tiger or if you are new user, you may have experienced errors when trying to build py-mysql.Py-mysql is a Python module to connect to Mysql.I&#8217;m using it to have Django, the Python Web Framework, to connect to Mysql database. This is what I got when trying to install :  
<pre lang="bash"># port install py-mysql
--->  Building py-mysql with target build
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-mysql/work/MySQL-python-1.2.2" &#038;&#038; /opt/local/bin/python2.4 setup.py build " returned error 1
Command output: running build
running build_py
copying MySQLdb/release.py -> build/lib.macosx-10.3-ppc-2.4/MySQLdb
running build_ext
building '_mysql' extension
/usr/bin/gcc-4.0 -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -Dversion_info=(1,2,2,'final',0) -D__version__=1.2.2 -I/opt/local/include/mysql5/mysql -I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -c _mysql.c -o build/temp.macosx-10.3-ppc-2.4/_mysql.o
In file included from /opt/local/include/mysql5/mysql/mysql.h:47,
                 from _mysql.c:40:
/usr/include/sys/types.h:92: error: duplicate 'unsigned'
/usr/include/sys/types.h:92: error: two or more data types in declaration specifiers
error: command '/usr/bin/gcc-4.0' failed with exit status 1

Error: Status 1 encountered during processing.
</pre>
<p>I tried to upgrade MacPorts&#8230; but I already had the latest.</p>
<pre lang="bash"># port selfupdate

MacPorts base version 1.600 installed

Downloaded MacPorts base version 1.600

The MacPorts installation is not outdated and so was not updated
selfupdate done!</pre>
<p>I finaly found the solution on <a href="http://rob.cogit8.org/blog/2007/Nov/14/installing-django-leopard-mac-os-105/" target="_blank">http://rob.cogit8.org/blog/2007/Nov/14/installing-django-leopard-mac-os-105/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lecentre.net/blog/archives/235/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

