<?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>Caneblu.com &#187; command line</title>
	<atom:link href="http://www.caneblu.com/tag/command-line/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.caneblu.com</link>
	<description>Solo un altro blog targato WordPress</description>
	<lastBuildDate>Mon, 10 May 2010 20:32:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>MySQL backup from command line</title>
		<link>http://www.caneblu.com/2010/02/mysql-backup-from-command-line/</link>
		<comments>http://www.caneblu.com/2010/02/mysql-backup-from-command-line/#comments</comments>
		<pubDate>Sun, 14 Feb 2010 16:17:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[tricks]]></category>

		<guid isPermaLink="false">http://www.caneblu.com/?p=123</guid>
		<description><![CDATA[It may be useful to make a backup of a specific database through the command line. Surely it is easier to use tools like phpMyAdmin, but in case of emergency or because you prefer use the shell, this info is certainly useful. The executable that performs the operation is &#8220;mysqldump&#8221; which is usually installed with [...]]]></description>
			<content:encoded><![CDATA[<p>It may be useful to make a backup of a specific database through the command line. Surely it is easier to use tools like <strong>phpMyAdmin</strong>, but in case of emergency or because you prefer use the shell, this info is certainly useful. The executable that performs the operation is &#8220;<strong>mysqldump</strong>&#8221; which is usually installed with the MySQL server.</p>
<p><code>mysqldump -h localhost -u username -p database_name > database_backup.sql</code></p>
<p>Obviously the parameters changed accordingly, localhost should be fine considering the use of the shell, while database_name username must be adjusted accordingly. After the sign > is the name chosen at your discretion. Once given the command will be prompted for a password to access the database to its content.</p>
<p>Can also directly produce a compressed slightly by changing the syntax as follows:</p>
<p><code>mysqldump -h localhost -u username -p database_name | gzip -9 > database_backup.sql.gz</code></p>
<p>where performs gzip compression (-9 parameter indicates the best compression possible), this is useful if you download the file through the Internet.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.caneblu.com/2010/02/mysql-backup-from-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
