<?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>Eric Fickes &#187; phpMyAdmin</title>
	<atom:link href="http://ericfickes.com/tag/phpmyadmin/feed/" rel="self" type="application/rss+xml" />
	<link>http://ericfickes.com</link>
	<description>Design minded Internet Programmer</description>
	<lastBuildDate>Fri, 28 Oct 2011 04:14:43 +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>Copy a MySQL database to your local MySQL machine</title>
		<link>http://ericfickes.com/2008/12/copy-a-mysql-database-to-your-local-mysql-machine/</link>
		<comments>http://ericfickes.com/2008/12/copy-a-mysql-database-to-your-local-mysql-machine/#comments</comments>
		<pubDate>Sun, 14 Dec 2008 03:43:04 +0000</pubDate>
		<dc:creator>Eric Fickes</dc:creator>
				<category><![CDATA[command line]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[tips and tricks]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[copy database]]></category>
		<category><![CDATA[dump file]]></category>
		<category><![CDATA[export database]]></category>
		<category><![CDATA[import]]></category>
		<category><![CDATA[import database]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysql5]]></category>
		<category><![CDATA[phpMyAdmin]]></category>

		<guid isPermaLink="false">http://ericfickes.com/?p=343</guid>
		<description><![CDATA[Here&#8217;s one way to copy a MySQL database from one server to another using phpMyAdmin, and the MySQL command line client. Requirements : MySQL 5.x installed on your local machine MySQL command line client on your local machine Access to &#8230; <a href="http://ericfickes.com/2008/12/copy-a-mysql-database-to-your-local-mysql-machine/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s one way to copy a MySQL database from one server to another using phpMyAdmin, and the MySQL command line client.</p>
<p><strong>Requirements :</strong></p>
<ul>
<li>MySQL 5.x installed on your local machine</li>
<li>MySQL command line client on your local machine</li>
<li>Access to phpMyAdmin on your source MySQL machine</li>
</ul>
<p><strong>Assumptions:</strong></p>
<ul>
<li>You have access to the MySQL command line client.</li>
<li>You have the root password for your local MySQL instance</li>
<li>You are comfortable using phpMyAdmin and MySQL command line client</li>
</ul>
<p><strong>Instructions:</strong></p>
<ol>
<li>Log into phpMyAdmin on your source MySQL machine.</li>
<li>Click the Export link on the lower part of the home page.</li>
<li>Select your database in the &#8216;Export&#8217; box on the left.</li>
<li>Make sure SQL is selected under the database box.</li>
<li>In the &#8216;Options&#8217; box on the right, make sure Structure and Data are selected.</li>
<li>Make sure to check &#8216;Add DROP TABLE / DROP VIEW&#8217; as well.</li>
<li>Towards the bottom, check the box next to &#8216;Save as file&#8217;.  This will be the file we import later.</li>
<li>Click the GO button, and your browser should prompt you to download your SQL file.  *Make note of where you saved your exported sql file.  I saved mine to d:\downloads\import.sql because it&#8217;s an easy path to use later.</li>
<li>Open your local MySQL Command Line Client.  ( From MySql Program menu or type &#8220;<strong>mysql -u root -p</strong>&#8221; in the run dialog box ).</li>
<li>Enter your root password when prompted.</li>
<li>Import your database by running this command &#8220;<strong>mysql \. d:\downloads\import.sql</strong>&#8220;.  Be sure to adjust the path to match where you saved your sql file from step 8.</li>
<li>Now you should see your database listed when you run the command &#8220;<strong>show databases;</strong>&#8220;</li>
</ol>
<p> </p>
<p>Here are instructions for doing the same thing on OS X</p>
<ol>
<li>Follow steps 1 through 8 above to created your sql export file</li>
<li>Connect to mysql &#8220;/usr/local/mysql/bin/mysql -u root -p&#8221;</li>
<li>{enter root password}</li>
<li>If it&#8217;s not already created, created your databse &#8220;create database {your db name};&#8221;</li>
<li>Select your database &#8220;user {your db name};&#8221;</li>
<li>&#8220;mysql \. /users/ericfickes/Downloads/mydbfile.sql&#8221;</li>
</ol>
<p>Be sure to adjust the paths listed to match your MySQL install, and the location where you downloaded the sql file.</p>
]]></content:encoded>
			<wfw:commentRss>http://ericfickes.com/2008/12/copy-a-mysql-database-to-your-local-mysql-machine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

