<?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>mysqldump &#8211; Database Research &amp; Development</title>
	<atom:link href="https://www.dbrnd.com/tag/mysqldump/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dbrnd.com</link>
	<description>BIGData &#124; NoSQL &#124; MSSQL &#124; MySQL &#124; PostgreSQL</description>
	<lastBuildDate>Tue, 26 Sep 2017 19:18:53 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.6</generator>
	<item>
		<title>MySQL: Copy Database From One Server to Another Server (Using mysqldump)</title>
		<link>https://www.dbrnd.com/2017/11/mysql-copy-database-from-one-server-to-another-server-using-mysqldump/</link>
					<comments>https://www.dbrnd.com/2017/11/mysql-copy-database-from-one-server-to-another-server-using-mysqldump/#comments</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Thu, 09 Nov 2017 16:16:45 +0000</pubDate>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[MySQL Command]]></category>
		<category><![CDATA[MySQL Database Administrator]]></category>
		<category><![CDATA[MySQL Database Designing]]></category>
		<category><![CDATA[MySQL Database Programming]]></category>
		<category><![CDATA[MySQL Error]]></category>
		<category><![CDATA[MySQL Performance Tuning]]></category>
		<category><![CDATA[MySQL Query]]></category>
		<category><![CDATA[MySQL Tips and Tricks]]></category>
		<category><![CDATA[mysqldump]]></category>
		<category><![CDATA[restore]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=6097</guid>

					<description><![CDATA[In this post, I am sharing different types of options to copy your MySQL Database from one server to another server. The migration of data, objects or database is a ubiquitous task for any DBA so as a blogger I can&#8217;t skip this kind of topics. Common and General option: Server 1: Take the backup [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F11%2Fmysql-copy-database-from-one-server-to-another-server-using-mysqldump%2F&amp;linkname=MySQL%3A%20Copy%20Database%20From%20One%20Server%20to%20Another%20Server%20%28Using%20mysqldump%29" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F11%2Fmysql-copy-database-from-one-server-to-another-server-using-mysqldump%2F&amp;linkname=MySQL%3A%20Copy%20Database%20From%20One%20Server%20to%20Another%20Server%20%28Using%20mysqldump%29" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F11%2Fmysql-copy-database-from-one-server-to-another-server-using-mysqldump%2F&amp;linkname=MySQL%3A%20Copy%20Database%20From%20One%20Server%20to%20Another%20Server%20%28Using%20mysqldump%29" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F11%2Fmysql-copy-database-from-one-server-to-another-server-using-mysqldump%2F&amp;linkname=MySQL%3A%20Copy%20Database%20From%20One%20Server%20to%20Another%20Server%20%28Using%20mysqldump%29" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F11%2Fmysql-copy-database-from-one-server-to-another-server-using-mysqldump%2F&amp;linkname=MySQL%3A%20Copy%20Database%20From%20One%20Server%20to%20Another%20Server%20%28Using%20mysqldump%29" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F11%2Fmysql-copy-database-from-one-server-to-another-server-using-mysqldump%2F&amp;linkname=MySQL%3A%20Copy%20Database%20From%20One%20Server%20to%20Another%20Server%20%28Using%20mysqldump%29" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F11%2Fmysql-copy-database-from-one-server-to-another-server-using-mysqldump%2F&#038;title=MySQL%3A%20Copy%20Database%20From%20One%20Server%20to%20Another%20Server%20%28Using%20mysqldump%29" data-a2a-url="https://www.dbrnd.com/2017/11/mysql-copy-database-from-one-server-to-another-server-using-mysqldump/" data-a2a-title="MySQL: Copy Database From One Server to Another Server (Using mysqldump)"></a></p><p>In this post, I am sharing different types of options to copy your MySQL Database from one server to another server.</p>
<p>The migration of data, objects or database is a ubiquitous task for any DBA so as a blogger I can&#8217;t skip this kind of topics. </p>
<p><strong>Common and General option:</strong></p>
<blockquote><p><strong>Server 1: Take the backup in .sql file</strong><br />
&#8211; -databases option adds the CREATE DATABASE in dump file, so that you can restore same backup in any other server without creating a blank database.</p>
<pre class="crayon-plain-tag">my-shell&gt; mysqldump --databases db_name &gt; mydump.sql</pre> </p>
<p><strong>Next, copy mydump.sql file from Server 1 to Server 2.</strong></p>
<p><strong>Server 2: Restore the backup</strong></p>
<pre class="crayon-plain-tag">my-shell&gt; mysql &lt; mydump.sql</pre>
</p></blockquote>
<p><strong>My favourite option:</strong></p>
<blockquote><p>Use pipe and copy the database from one server to another, without taking or moving the physical file. </p>
<pre class="crayon-plain-tag">mysqldump -uuser -ppassword db_name | mysql -hremoteserver -uremoteuser -premoteserverpassword</pre> </p>
<p><strong>For all database:</strong></p>
<pre class="crayon-plain-tag">mysqldump --all-databases -uuser -ppassword | mysql -hremoteserver -uremoteuser -premoteserverpassword</pre> </p>
</blockquote>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2017/11/mysql-copy-database-from-one-server-to-another-server-using-mysqldump/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>MySQL: Take a separate backup of Table Data and Table Structure</title>
		<link>https://www.dbrnd.com/2017/07/mysql-take-a-separate-backup-of-table-data-and-table-structure-mysqldump/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Mon, 03 Jul 2017 16:16:53 +0000</pubDate>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[data backup]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[MySQL Command]]></category>
		<category><![CDATA[MySQL Database Administrator]]></category>
		<category><![CDATA[MySQL Database Designing]]></category>
		<category><![CDATA[MySQL Database Programming]]></category>
		<category><![CDATA[MySQL Error]]></category>
		<category><![CDATA[MySQL Performance Tuning]]></category>
		<category><![CDATA[MySQL Query]]></category>
		<category><![CDATA[MySQL Tips and Tricks]]></category>
		<category><![CDATA[mysqldump]]></category>
		<category><![CDATA[table backup]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=5457</guid>

					<description><![CDATA[In the previous article, I shared few mysqldump options to take the table only backup or ignore few tables from the full database backup. In addition to the previous post, here I am sharing other relevant options to take the backup of table structure or take the backup of table data only. Why we need [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F07%2Fmysql-take-a-separate-backup-of-table-data-and-table-structure-mysqldump%2F&amp;linkname=MySQL%3A%20Take%20a%20separate%20backup%20of%20Table%20Data%20and%20Table%20Structure" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F07%2Fmysql-take-a-separate-backup-of-table-data-and-table-structure-mysqldump%2F&amp;linkname=MySQL%3A%20Take%20a%20separate%20backup%20of%20Table%20Data%20and%20Table%20Structure" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F07%2Fmysql-take-a-separate-backup-of-table-data-and-table-structure-mysqldump%2F&amp;linkname=MySQL%3A%20Take%20a%20separate%20backup%20of%20Table%20Data%20and%20Table%20Structure" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F07%2Fmysql-take-a-separate-backup-of-table-data-and-table-structure-mysqldump%2F&amp;linkname=MySQL%3A%20Take%20a%20separate%20backup%20of%20Table%20Data%20and%20Table%20Structure" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F07%2Fmysql-take-a-separate-backup-of-table-data-and-table-structure-mysqldump%2F&amp;linkname=MySQL%3A%20Take%20a%20separate%20backup%20of%20Table%20Data%20and%20Table%20Structure" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F07%2Fmysql-take-a-separate-backup-of-table-data-and-table-structure-mysqldump%2F&amp;linkname=MySQL%3A%20Take%20a%20separate%20backup%20of%20Table%20Data%20and%20Table%20Structure" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F07%2Fmysql-take-a-separate-backup-of-table-data-and-table-structure-mysqldump%2F&#038;title=MySQL%3A%20Take%20a%20separate%20backup%20of%20Table%20Data%20and%20Table%20Structure" data-a2a-url="https://www.dbrnd.com/2017/07/mysql-take-a-separate-backup-of-table-data-and-table-structure-mysqldump/" data-a2a-title="MySQL: Take a separate backup of Table Data and Table Structure"></a></p><p>In the previous article, I shared few mysqldump options to take the table only backup or ignore few tables from the full database backup. </p>
<p>In addition to the previous post, here I am sharing other relevant options to take the backup of table structure or take the backup of table data only. </p>
<blockquote><p>Why we need this kind of choices? Because sometimes we need to create a database with empty tables in a new server and in that newly created database we might require to insert data from another server. </p></blockquote>
<p>So there are few requirements for table structure and table data which require loading from different servers.  </p>
<p><strong>Take a backup of table structure only:</strong></p>
<pre class="crayon-plain-tag">mysqldump -u user_name -p --no-data db_name &gt; db_backup.sql</pre> </p>
<p><strong>Take a backup of table data only:</strong></p>
<pre class="crayon-plain-tag">mysqldump -u user_name -p --no-create-info db_name &gt; db_backup.sql</pre> </p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>MySQL: Take a Table Backup or Ignore few Tables in a Backup</title>
		<link>https://www.dbrnd.com/2017/07/mysql-take-a-table-backup-or-ignore-few-tables-in-a-backup-mysqldump/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Sun, 02 Jul 2017 16:16:33 +0000</pubDate>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[--ignore-table]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[MySQL Command]]></category>
		<category><![CDATA[MySQL Database Administrator]]></category>
		<category><![CDATA[MySQL Database Designing]]></category>
		<category><![CDATA[MySQL Database Programming]]></category>
		<category><![CDATA[MySQL Error]]></category>
		<category><![CDATA[MySQL Performance Tuning]]></category>
		<category><![CDATA[MySQL Query]]></category>
		<category><![CDATA[MySQL Tips and Tricks]]></category>
		<category><![CDATA[mysqldump]]></category>
		<category><![CDATA[restore]]></category>
		<category><![CDATA[table backup]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=5453</guid>

					<description><![CDATA[In this post, I am sharing a solution to take an only table or few tables backup in MySQL and also sharing solution like, How you can ignore few tables while taking a backup of MySQL Database. In last year, I shared a basic article on how to take a backup of the database in [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F07%2Fmysql-take-a-table-backup-or-ignore-few-tables-in-a-backup-mysqldump%2F&amp;linkname=MySQL%3A%20Take%20a%20Table%20Backup%20or%20Ignore%20few%20Tables%20in%20a%20Backup" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F07%2Fmysql-take-a-table-backup-or-ignore-few-tables-in-a-backup-mysqldump%2F&amp;linkname=MySQL%3A%20Take%20a%20Table%20Backup%20or%20Ignore%20few%20Tables%20in%20a%20Backup" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F07%2Fmysql-take-a-table-backup-or-ignore-few-tables-in-a-backup-mysqldump%2F&amp;linkname=MySQL%3A%20Take%20a%20Table%20Backup%20or%20Ignore%20few%20Tables%20in%20a%20Backup" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F07%2Fmysql-take-a-table-backup-or-ignore-few-tables-in-a-backup-mysqldump%2F&amp;linkname=MySQL%3A%20Take%20a%20Table%20Backup%20or%20Ignore%20few%20Tables%20in%20a%20Backup" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F07%2Fmysql-take-a-table-backup-or-ignore-few-tables-in-a-backup-mysqldump%2F&amp;linkname=MySQL%3A%20Take%20a%20Table%20Backup%20or%20Ignore%20few%20Tables%20in%20a%20Backup" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F07%2Fmysql-take-a-table-backup-or-ignore-few-tables-in-a-backup-mysqldump%2F&amp;linkname=MySQL%3A%20Take%20a%20Table%20Backup%20or%20Ignore%20few%20Tables%20in%20a%20Backup" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F07%2Fmysql-take-a-table-backup-or-ignore-few-tables-in-a-backup-mysqldump%2F&#038;title=MySQL%3A%20Take%20a%20Table%20Backup%20or%20Ignore%20few%20Tables%20in%20a%20Backup" data-a2a-url="https://www.dbrnd.com/2017/07/mysql-take-a-table-backup-or-ignore-few-tables-in-a-backup-mysqldump/" data-a2a-title="MySQL: Take a Table Backup or Ignore few Tables in a Backup"></a></p><p>In this post, I am sharing a solution to take an only table or few tables backup in MySQL and also sharing solution like, How you can ignore few tables while taking a backup of MySQL Database. </p>
<p>In last year, I shared a basic article on how to take a backup of the database in MySQL, which also you can access here. </p>
<blockquote data-secret="6X4rlgyMMe" class="wp-embedded-content"><p><a href="https://www.dbrnd.com/2016/01/mysql-backup-and-restore-database-using-mysqldump/">MySQL: Backup and Restore Database using mysqldump</a></p></blockquote>
<p><iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted"  src="https://www.dbrnd.com/2016/01/mysql-backup-and-restore-database-using-mysqldump/embed/#?secret=6X4rlgyMMe" data-secret="6X4rlgyMMe" width="600" height="338" title="&#8220;MySQL: Backup and Restore Database using mysqldump&#8221; &#8212; Database Research &amp; Development" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe></p>
<blockquote><p>The copying data from one server to another, data migration, the backup requirement for specific data or object or stored procedure, data versioning &#8211;  These all are part of DBA&#8217;s day to day activity, and N number combinations are there.</p></blockquote>
<p>There are many options available for mysqldump utility, so I am using few options to play for table backup only. Let me explore few options related to table backup in MySQL. </p>
<p><strong>Take a backup of a single table:</strong></p>
<pre class="crayon-plain-tag">mysqldump -u <db_username> -p db_name table_name > table_name_backup.sql</pre> </p>
<p><strong>Take a backup of multiple tables:</strong></p>
<pre class="crayon-plain-tag">mysqldump -u &lt;db_username&gt; -p db_name table_name_1 table_name_2 table_name_3 &gt; tables_backup.sql</pre> </p>
<p><strong>Ignore a table from full database backup:</strong></p>
<pre class="crayon-plain-tag">mysqldump -u &lt;db_username&gt; -p db_name --ignore-table=db_name.table_name_1 &gt; db_backup.sql</pre> </p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>MySQL: Backup and Restore Database using mysqldump</title>
		<link>https://www.dbrnd.com/2016/01/mysql-backup-and-restore-database-using-mysqldump/</link>
					<comments>https://www.dbrnd.com/2016/01/mysql-backup-and-restore-database-using-mysqldump/#comments</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Tue, 05 Jan 2016 19:32:33 +0000</pubDate>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[MySQL DBA Script]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[MySQL Command]]></category>
		<category><![CDATA[MySQL Database Administrator]]></category>
		<category><![CDATA[MySQL Database Designing]]></category>
		<category><![CDATA[MySQL Database Programming]]></category>
		<category><![CDATA[MySQL Error]]></category>
		<category><![CDATA[MySQL Performance Tunning]]></category>
		<category><![CDATA[MySQL Query]]></category>
		<category><![CDATA[MySQL Tips and Tricks]]></category>
		<category><![CDATA[mysqldump]]></category>
		<category><![CDATA[restore]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=1224</guid>

					<description><![CDATA[In this post, I am sharing a script for performing Backup and restoring of MySQL Database using Mysqldump. Mysqldump is an important tool for MySQL Server, and it creates a *.sql file with database structure and data. It also includes all possible table lock and objects existence script. I am sharing different syntax and scripts [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F01%2Fmysql-backup-and-restore-database-using-mysqldump%2F&amp;linkname=MySQL%3A%20Backup%20and%20Restore%20Database%20using%20mysqldump" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F01%2Fmysql-backup-and-restore-database-using-mysqldump%2F&amp;linkname=MySQL%3A%20Backup%20and%20Restore%20Database%20using%20mysqldump" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F01%2Fmysql-backup-and-restore-database-using-mysqldump%2F&amp;linkname=MySQL%3A%20Backup%20and%20Restore%20Database%20using%20mysqldump" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F01%2Fmysql-backup-and-restore-database-using-mysqldump%2F&amp;linkname=MySQL%3A%20Backup%20and%20Restore%20Database%20using%20mysqldump" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F01%2Fmysql-backup-and-restore-database-using-mysqldump%2F&amp;linkname=MySQL%3A%20Backup%20and%20Restore%20Database%20using%20mysqldump" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F01%2Fmysql-backup-and-restore-database-using-mysqldump%2F&amp;linkname=MySQL%3A%20Backup%20and%20Restore%20Database%20using%20mysqldump" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F01%2Fmysql-backup-and-restore-database-using-mysqldump%2F&#038;title=MySQL%3A%20Backup%20and%20Restore%20Database%20using%20mysqldump" data-a2a-url="https://www.dbrnd.com/2016/01/mysql-backup-and-restore-database-using-mysqldump/" data-a2a-title="MySQL: Backup and Restore Database using mysqldump"></a></p><p>In this post, I am sharing a script for performing Backup and restoring of MySQL Database using Mysqldump.</p>
<p>Mysqldump is an important tool for MySQL Server, and it creates a *.sql file with database structure and data. It also includes all possible table lock and objects existence script.</p>
<p>I am sharing different syntax and scripts for performing the Backup and Restore of a single database or multiple databases. </p>
<p><strong>Syntax and Command to take the backup of Single Database:</strong></p>
<pre class="crayon-plain-tag">-- Syntax
mysqldump -u root -p[root_password] [database_name] &gt; dumpMyFileName.sql

-- Example
mysqldump -u root -pTestPass MyDatabase &gt; MyDBBackup.sql</pre> </p>
<p><strong>Syntax and Command for restoring of Single Database:</strong><br />
The new blank database requires being created before any restore operation. </p>
<pre class="crayon-plain-tag">-- Syntax
mysqldump -u root -p[root_password] [database_name] &lt; dumpMyFileName.sql

-- Example
mysqldump -u root -pTestPass NewDatabase &lt; MyDBBackup.sql</pre> </p>
<p><strong>Command to take backup of multiple databases:</strong></p><pre class="crayon-plain-tag">mysqldump -u root -pTestPass --databases MyDB1 MyDB2 &gt; MultipleDB.sql</pre><p> </p>
<p><strong>Command to take backup of all databases:</strong></p><pre class="crayon-plain-tag">mysqldump -u root -pTestPass --all-databases > All.sql</pre><p> </p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2016/01/mysql-backup-and-restore-database-using-mysqldump/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
