<?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>My Scribbles &#187; mysql</title>
	<atom:link href="http://www.blazecoder.com/tag/mysql/feed" rel="self" type="application/rss+xml" />
	<link>http://www.blazecoder.com</link>
	<description></description>
	<lastBuildDate>Thu, 08 Jul 2010 05:15:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How To Import Large MySQL Database Using DOS Command</title>
		<link>http://www.blazecoder.com/linux-command/how-to-import-large-mysql-database-using-dos-command</link>
		<comments>http://www.blazecoder.com/linux-command/how-to-import-large-mysql-database-using-dos-command#comments</comments>
		<pubDate>Mon, 18 Jan 2010 06:21:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux Command]]></category>
		<category><![CDATA[DOS Command]]></category>
		<category><![CDATA[How To Access MySQL Using Windows Command Prompt]]></category>
		<category><![CDATA[How To Import Large MySQL Database Using DOS Command]]></category>
		<category><![CDATA[Import Mysql Database]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.blazecoder.com/?p=168</guid>
		<description><![CDATA[MySQL is one of the most popular open source database management system for development of interactive Websites nowadays.
If your site stores a large amount of data on MySQL Database and you wish to restore and run via localhost, you will most definitely want to import the database file quickly.
There are several ways on how to [...]]]></description>
			<content:encoded><![CDATA[<p>MySQL is one of the most popular open source database management system for development of interactive Websites nowadays.</p>
<p>If your site stores a large amount of data on MySQL Database and you wish to restore and run via localhost, you will most definitely want to import the database file quickly.</p>
<p>There are several ways on how to import large MySQL Database File on your localhost and server using different methods. In this article, definitely my experienced also. We&#8217;ll look at how to import MySQL Database file using DOS Command. We will also learn on how to achieve an automatic import solution to make the process easily and quickly.</p>
<p><b>Here&#8217;s how:</b></p>
<p>Launch your Command Window and type:<br />
cd c:xampp\mysql\bin<br />
it should be writen this way<br />
-> c:xampp\mysql\bin>mysql -h localhost -u root -p roofing < c:\xampp\mysql\data\db.sql</p>
<p>where roofing is the name of your database that you have created on the phpMyAdmin GUI.<br />
and c:\xampp\mysql\data\db.sql -> the path of your database file to be imported.</p>
<p>When finished typing, just hit enter, you&#8217;ll be prompt to enter you mysql password, if you set to none then leave blank andpress enter again. DONE! your database table have been imported.</p>
<p>The Image below explains the exact syntax I&#8217;ve used.</p>
<p><a href="http://www.blazecoder.com/wp-content/uploads/2010/01/Linux-Images2.JPG"><img src="http://www.blazecoder.com/wp-content/uploads/2010/01/Linux-Images2.JPG" alt="How To Import Large MySQL Database Using DOS Command" title="How To Import Large MySQL Database Using DOS Command" width="669" height="207" class="aligncenter size-full wp-image-173" /></a></p>
<p><b>How To Access MySQL Using Windows Command Prompt</b></p>
<p>The following tutorial assumes that you already have downloaded and installed MySQL on your Windows machine. </p>
<p>From inside Windows here’s how you would access MySQL this way:</p>
<p>1) Launch a Command Window.<br />
[NOTE: you can also get to it by going to START->RUN and typing: cmd </p>
<p>2) On the Command Prompt Window type: cd c:\mysql\bin<br />
(or change directory to the location that you installed if you didn’t use the default install location)</p>
<p>3) if you don’t have a password set yet, then you can set it easily by typing the following:</p>
<p>mysqladmin -u root password new_password</p>
<p>where new_password is the new password that you would like to use.</p>
<p>4) next, when you have already set a custom MySQL root password (step #3) then type: mysql -u root -p</p>
<p>PROBLEM #1: if you receive a message asking for your password then enter the custom password (you’ll see asterisk instead of the password). If for some reason you can’t figure out the password you can reset it by following the instructions here: http://dev.mysql.com/doc/mysql/en/Resetting_permissions.html</p>
<p>PROBLEM #2: If you receive a message that indicates the MySQL server isn’t running then you can start the MySQL service from within the Command Prompt by entering the following: net start mysql — you can also see a list of all running NET services by typing: net start</p>
<p>5) next, if the MySQL server is running and you entered in your password correctly you should now be set to communicate directly with the MySQL server from the Command Prompt just like you would if you were telnet or SSH to MySQL on a server. The command prompt should look like this now:</p>
<p>mysql></p>
<p>You can now view your available database by typing: show databases</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blazecoder.com/linux-command/how-to-import-large-mysql-database-using-dos-command/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
