<?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>Netflow Developments &#187; import .sql</title>
	<atom:link href="http://blog.netflowdevelopments.com/tag/import-sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.netflowdevelopments.com</link>
	<description>The latest and greatest happenings in the world of Science, Technology and everything else Geek</description>
	<lastBuildDate>Fri, 10 Feb 2012 09:22:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Importing / Loading a Mysql backup / database from a .sql file &#8211; In Shell</title>
		<link>http://blog.netflowdevelopments.com/2009/03/23/importing-loading-a-mysql-backup-database-from-a-sql-file-in-shell/</link>
		<comments>http://blog.netflowdevelopments.com/2009/03/23/importing-loading-a-mysql-backup-database-from-a-sql-file-in-shell/#comments</comments>
		<pubDate>Mon, 23 Mar 2009 22:26:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[.sql]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[bsd]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[import .sql]]></category>
		<category><![CDATA[Linux / Freebsd]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[restore]]></category>
		<category><![CDATA[shell]]></category>
		<guid isPermaLink="false">http://blog.netflowdevelopments.com/2009/03/23/importing-loading-a-mysql-backup-database-from-a-sql-file-in-shell/</guid>
		<description><![CDATA[I was appalled when the first page of search results for this came up with instructions on how to do this for a Windows server.  So I felt it my duty to add to the tutorials out there for people actually running a real web server (BSD/Linux/Etc) Parse in the .sql file into an already [...]]]></description>
			<content:encoded><![CDATA[<p>I was appalled when the first page of search results for this came up with instructions on how to do this for a Windows server.  So I felt it my duty to add to the tutorials out there for people actually running a real web server (BSD/Linux/Etc)</p>
<p>Parse in the .sql file into an already existing DB</p>
<p>In shell simply issue the following command</p>
<p>$ mysql -u root -p db-name &lt; backup-file.sql</p>
<p>To create a new DB and then import</p>
<p>Login to Mysql:<br />
<code>$ mysql -u root -p</code></p>
<p>Now create database called sales using SQL statement:</p>
<pre>mysql&gt; <strong>CREATE DATABASE <span style="color: #ff0000;">myDB</span>;</strong>
mysql&gt; <strong>quit</strong>;</pre>
<p>Now restore database, enter:<br />
<code>$ mysql -u root -p myDB &lt; <span style="color: #993399;">/path/to/your-DB-file.sql</span></code><br />
Easy Peasy isn&#8217;t it?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.netflowdevelopments.com/2009/03/23/importing-loading-a-mysql-backup-database-from-a-sql-file-in-shell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

