<?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>MySQL &#8211; Sibeesh Passion</title>
	<atom:link href="https://mail.sibeeshpassion.com/category/database/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>https://mail.sibeeshpassion.com</link>
	<description>My passion towards life</description>
	<lastBuildDate>Sun, 28 May 2017 08:29:29 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>/wp-content/uploads/2017/04/Sibeesh_Passion_Logo_Small.png</url>
	<title>MySQL &#8211; Sibeesh Passion</title>
	<link>https://mail.sibeeshpassion.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Link Your MySQL Database To Azure Virtual Machine And WordPress</title>
		<link>https://mail.sibeeshpassion.com/link-your-mysql-database-to-azure-virtual-machine-and-wordpress/</link>
					<comments>https://mail.sibeeshpassion.com/link-your-mysql-database-to-azure-virtual-machine-and-wordpress/#disqus_thread</comments>
		
		<dc:creator><![CDATA[SibeeshVenu]]></dc:creator>
		<pubDate>Thu, 24 Sep 2015 05:35:02 +0000</pubDate>
				<category><![CDATA[Azure]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Virtual Machine]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Adding end points in Azure Virtual Machine]]></category>
		<category><![CDATA[Azure Virtual Machine]]></category>
		<category><![CDATA[Change Virtual Machine Endpoints]]></category>
		<category><![CDATA[Changing the Firewall Settings In Azure Virtual Machine]]></category>
		<guid isPermaLink="false">http://sibeecst_passion.com/?p=10648</guid>

					<description><![CDATA[This article explains how you can link your existing MySQL database to a Azure virtual machine and configure in wordpress. Once your database and wordpress website id ready you can go ahead and link your DB to wordpress and axure virtual machine. If you need to back up and restore your clear db MySQL database in a virtual machine in Azure, I suggest you to read Back Up your ClearDB and restore in Azure. If you are new to azure virtual machine, I strongly recommend you to read here: Create Virtual Machine In Azure. You can also find how to [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>This article explains how you can link your existing MySQL database to a Azure virtual machine and configure in wordpress. Once your database and wordpress website id ready you can go ahead and link your DB to wordpress and axure virtual machine.  If you need to back up and restore your clear db <a href="http://sibeeshpassion.com/category/mysql/" target="_blank">MySQL </a>database in a virtual machine in <a href="http://sibeeshpassion.com/tag/azure/" target="_blank">Azure</a>, I suggest you to read <a href="http://sibeeshpassion.com/back-up-your-cleardb-and-restore-in-azure-virtual-machine-mysql/" target="_blank">Back Up your ClearDB and restore in Azure</a>. If you are new to azure virtual machine, I strongly recommend you to read here: <a href="http://sibeeshpassion.com/create-virtual-machine-in-azure/" target="_blank">Create Virtual Machine In Azure</a>. You can also find how to install MySQL in Azure Virtual Machine here <a href="http://sibeeshpassion.com/install-mysql-in-azure-virtual-machine/" target="_blank">Install MySQL in Azure </a> . I hope you will like this.</p>
<p>If you are new to azure, I recommend you to read here: <a href="http://sibeeshpassion.com/category/azure/" target="_blank">Azure </a></p>
<p><strong>Background</strong></p>
<p>I hope you read my articles related to <a href="http://sibeeshpassion.com/category/virtual-machine/" target="_blank">Virtual Machines </a>in azure. If not, please read those. I was being limited to use only 20 MB size since one of the MSDN subscription was providing me ClearDB. So I thought of creating a virtual machine and install MySQL. Then I restored my previous Database to my new Database. Here in this article, I will share you the steps to link the database you created to azure virtual machine and wordpress.</p>
<p><strong>Steps to Back Up your ClearDB and restore</strong></p>
<p>Login to your azure portal <a href="https://manage.windowsazure.com" target="_blank">https://manage.windowsazure.com</a></p>
<p>Login to your Azure <a href="http://sibeeshpassion.com/create-virtual-machine-in-azure/" target="_blank">Virtual Machine</a></p>
<p>Hope you have already installed MySQL in your Virtual Machine. If so, we are ready to go.</p>
<p>First thing we need to do is to add the end points in our Azure virtual machine. To do so you need to follow the below steps.</p>
<p><strong>Add end points in Azure virtual machine</strong></p>
<p>Go to your virtual machine in azure management portal. </p>
<div id="attachment_10680" style="width: 644px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL15.png"><img fetchpriority="high" decoding="async" aria-describedby="caption-attachment-10680" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL15-1024x486.png" alt="Adding end points in Azure Virtual Machine" width="634" height="301" class="size-large wp-image-10680" srcset="/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL15-1024x486.png 1024w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL15-300x142.png 300w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL15-768x364.png 768w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL15-400x190.png 400w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL15.png 1160w" sizes="(max-width: 634px) 100vw, 634px" /></a><p id="caption-attachment-10680" class="wp-caption-text">Adding end points in Azure Virtual Machine</p></div>
<p>Now click on the end points as shown in the preceding image.</p>
<div id="attachment_10681" style="width: 660px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL16-e1443070554867.png"><img decoding="async" aria-describedby="caption-attachment-10681" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL16-e1443070554867.png" alt="Adding end points in Azure Virtual Machine" width="650" height="190" class="size-full wp-image-10681" srcset="/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL16-e1443070554867.png 650w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL16-e1443070554867-300x88.png 300w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL16-e1443070554867-400x117.png 400w" sizes="(max-width: 650px) 100vw, 650px" /></a><p id="caption-attachment-10681" class="wp-caption-text">Adding end points in Azure Virtual Machine</p></div>
<p>Click on the add option in the footer area.</p>
<div id="attachment_10682" style="width: 644px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL17.png"><img decoding="async" aria-describedby="caption-attachment-10682" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL17-1024x59.png" alt="Adding end points in Azure Virtual Machine" width="634" height="37" class="size-large wp-image-10682" srcset="/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL17-1024x59.png 1024w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL17-300x17.png 300w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL17-768x44.png 768w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL17-400x23.png 400w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL17.png 1157w" sizes="(max-width: 634px) 100vw, 634px" /></a><p id="caption-attachment-10682" class="wp-caption-text">Adding end points in Azure Virtual Machine</p></div>
<p>Now you will be getting a pop up, in that please click on the <em>Add standalone end points</em>.</p>
<div id="attachment_10683" style="width: 660px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL18-e1443070721887.png"><img decoding="async" aria-describedby="caption-attachment-10683" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL18-e1443070721887.png" alt="Adding end points in Azure Virtual Machine" width="650" height="532" class="size-full wp-image-10683" srcset="/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL18-e1443070721887.png 650w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL18-e1443070721887-300x246.png 300w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL18-e1443070721887-400x327.png 400w" sizes="(max-width: 650px) 100vw, 650px" /></a><p id="caption-attachment-10683" class="wp-caption-text">Adding end points in Azure Virtual Machine</p></div>
<p>In the given area, please select MySQL as name and TCP as protocol. Port should be the one we did it while configuring the MySQL. For example 3306. I suggest you to do not edit in that area.</p>
<div id="attachment_10684" style="width: 660px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL19-e1443070904219.png"><img decoding="async" aria-describedby="caption-attachment-10684" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL19-e1443070904219.png" alt="Adding end points in Azure Virtual Machine" width="650" height="535" class="size-full wp-image-10684" srcset="/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL19-e1443070904219.png 434w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL19-e1443070904219-300x247.png 300w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL19-e1443070904219-400x329.png 400w" sizes="(max-width: 650px) 100vw, 650px" /></a><p id="caption-attachment-10684" class="wp-caption-text">Adding end points in Azure Virtual Machine</p></div>
<p>Click on the tick icon once you have made entry for the required fields. Then you can see the progression and once it is completed, you will get a message as follows.</p>
<div id="attachment_10685" style="width: 644px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL20.png"><img decoding="async" aria-describedby="caption-attachment-10685" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL20-1024x111.png" alt="Adding end points in Azure Virtual Machine" width="634" height="69" class="size-large wp-image-10685" srcset="/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL20-1024x111.png 1024w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL20-300x32.png 300w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL20-768x83.png 768w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL20-400x43.png 400w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL20.png 1167w" sizes="(max-width: 634px) 100vw, 634px" /></a><p id="caption-attachment-10685" class="wp-caption-text">Adding end points in Azure Virtual Machine</p></div>
<p>So we have successfully created the end points for our virtual machine MySQL. The next step is, to change some settings in the firewall in our virtual machine. Please do this with some care. It is very much important. </p>
<p><strong>Setting the firewall configuration in Azure virtual machine</strong></p>
<p>Go to the start menu and type power shell. You will be given some search results.</p>
<div id="attachment_10686" style="width: 339px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL21.png"><img decoding="async" aria-describedby="caption-attachment-10686" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL21.png" alt="Setting the firewall configuration in Azure virtual machine" width="329" height="539" class="size-full wp-image-10686" srcset="/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL21.png 329w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL21-183x300.png 183w" sizes="(max-width: 329px) 100vw, 329px" /></a><p id="caption-attachment-10686" class="wp-caption-text">Setting the firewall configuration in Azure virtual machine</p></div>
<p>Now you can see a command window with the name of logged in user as shown in the preceding image.</p>
<div id="attachment_10687" style="width: 660px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL22-e1443071556733.png"><img decoding="async" aria-describedby="caption-attachment-10687" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL22-e1443071556733.png" alt="Setting the firewall configuration in Azure virtual machine" width="650" height="477" class="size-full wp-image-10687" srcset="/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL22-e1443071556733.png 486w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL22-e1443071556733-300x220.png 300w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL22-e1443071556733-400x294.png 400w" sizes="(max-width: 650px) 100vw, 650px" /></a><p id="caption-attachment-10687" class="wp-caption-text">Setting the firewall configuration in Azure virtual machine</p></div>
<p>The next step is a bit complex one. You need to enter a complex command which is shown here.</p>
<div id="attachment_10688" style="width: 660px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL23-e1443071662673.png"><img decoding="async" aria-describedby="caption-attachment-10688" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL23-e1443071662673.png" alt="Setting the firewall configuration in Azure virtual machine" width="650" height="41" class="size-full wp-image-10688" srcset="/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL23-e1443071662673.png 650w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL23-e1443071662673-300x19.png 300w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL23-e1443071662673-400x25.png 400w" sizes="(max-width: 650px) 100vw, 650px" /></a><p id="caption-attachment-10688" class="wp-caption-text">Setting the firewall configuration in Azure virtual machine</p></div>
<p>For your convenience I am giving the command as below.</p>
<p>[sql]<br />
New-NetFirewallRule -DisplayName &quot;MySQL56&quot; -Direction Indound -Protocol TCP -LocalPort 3306 -Action Allow -Profile Public<br />
[/sql]</p>
<p>You can type the command as shown below.</p>
<div id="attachment_10689" style="width: 660px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL24-e1443071814487.png"><img decoding="async" aria-describedby="caption-attachment-10689" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL24-e1443071814487.png" alt="Setting firewall in azure virtual machine" width="650" height="474" class="size-full wp-image-10689" srcset="/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL24-e1443071814487.png 650w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL24-e1443071814487-300x219.png 300w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL24-e1443071814487-400x292.png 400w" sizes="(max-width: 650px) 100vw, 650px" /></a><p id="caption-attachment-10689" class="wp-caption-text">Setting firewall in azure virtual machine</p></div>
<p>And if you do the above step correctly, I am sure you will be given a result as follows.</p>
<div id="attachment_10690" style="width: 660px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL25-e1443071893874.png"><img decoding="async" aria-describedby="caption-attachment-10690" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL25-e1443071893874.png" alt="Setting firewall in azure virtual machine" width="650" height="307" class="size-full wp-image-10690" srcset="/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL25-e1443071893874.png 650w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL25-e1443071893874-300x142.png 300w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL25-e1443071893874-400x189.png 400w" sizes="(max-width: 650px) 100vw, 650px" /></a><p id="caption-attachment-10690" class="wp-caption-text">Setting firewall in azure virtual machine</p></div>
<p>Wow, we have done the settings needed now.</p>
<p>Now we need to change some settings in our wordpress configuration. As you all know the wordpress configuration is in the file called wp-config.php. So we are going to change the configuration in that file.</p>
<p><strong>Changing the configuration to new settings in wordpress</strong></p>
<p>Again go to your manage azure page, click the web application you need to change the settings.</p>
<div id="attachment_10691" style="width: 644px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL26.png"><img decoding="async" aria-describedby="caption-attachment-10691" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL26-1024x505.png" alt="Changing the configuration to new settings in wordpress" width="634" height="313" class="size-large wp-image-10691" srcset="/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL26-1024x505.png 1024w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL26-300x148.png 300w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL26-768x379.png 768w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL26-400x197.png 400w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL26.png 1062w" sizes="(max-width: 634px) 100vw, 634px" /></a><p id="caption-attachment-10691" class="wp-caption-text">Changing the configuration to new settings in wordpress</p></div>
<p>Now go to the dashboard and click on edit in visual studio on-line.</p>
<div id="attachment_10692" style="width: 282px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL91.png"><img decoding="async" aria-describedby="caption-attachment-10692" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL91.png" alt="Changing the configuration to new settings in wordpress" width="272" height="379" class="size-full wp-image-10692" srcset="/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL91.png 272w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL91-215x300.png 215w" sizes="(max-width: 272px) 100vw, 272px" /></a><p id="caption-attachment-10692" class="wp-caption-text">Changing the configuration to new settings in wordpress</p></div>
<p>You can see your wordpress files now. Click on the wp-config.php. </p>
<div id="attachment_10693" style="width: 329px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL27.png"><img decoding="async" aria-describedby="caption-attachment-10693" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL27.png" alt="Changing the configuration to new settings in wordpress" width="319" height="632" class="size-full wp-image-10693" srcset="/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL27.png 319w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL27-151x300.png 151w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL27-303x600.png 303w" sizes="(max-width: 319px) 100vw, 319px" /></a><p id="caption-attachment-10693" class="wp-caption-text">Changing the configuration to new settings in wordpress</p></div>
<p>It is always better to take a back up or copy of the wp-config.php, so that you can revert back to your clearDB configuration whenever you want. I strongly recommend you to do this step.</p>
<div id="attachment_10694" style="width: 309px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL28.png"><img decoding="async" aria-describedby="caption-attachment-10694" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL28.png" alt="Changing the configuration to new settings in wordpress" width="299" height="225" class="size-full wp-image-10694" /></a><p id="caption-attachment-10694" class="wp-caption-text">Changing the configuration to new settings in wordpress</p></div>
<p>You can rename the pasted file, just right click on the file and click rename.</p>
<div id="attachment_10695" style="width: 293px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL29.png"><img decoding="async" aria-describedby="caption-attachment-10695" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL29.png" alt="Changing the configuration to new settings in wordpress" width="283" height="218" class="size-full wp-image-10695" /></a><p id="caption-attachment-10695" class="wp-caption-text">Changing the configuration to new settings in wordpress</p></div>
<p>As you can see in the below image, I have given the name as ClearDB-Wp-Config.php.</p>
<div id="attachment_10696" style="width: 271px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL30.png"><img decoding="async" aria-describedby="caption-attachment-10696" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL30.png" alt="Changing the configuration to new settings in wordpress" width="261" height="176" class="size-full wp-image-10696" /></a><p id="caption-attachment-10696" class="wp-caption-text">Changing the configuration to new settings in wordpress</p></div>
<p>Open your wp-config.php and change the MySQL host name.</p>
<div id="attachment_10697" style="width: 660px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL31-e1443072600781.png"><img decoding="async" aria-describedby="caption-attachment-10697" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL31-e1443072600781.png" alt="Changing the configuration to new settings in wordpress" width="650" height="35" class="size-full wp-image-10697" srcset="/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL31-e1443072600781.png 650w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL31-e1443072600781-300x16.png 300w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL31-e1443072600781-400x22.png 400w" sizes="(max-width: 650px) 100vw, 650px" /></a><p id="caption-attachment-10697" class="wp-caption-text">Changing the configuration to new settings in wordpress</p></div>
<p>Now add the port number in the host name because it listen that port.</p>
<div id="attachment_10698" style="width: 660px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL32-e1443072686568.png"><img decoding="async" aria-describedby="caption-attachment-10698" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL32-e1443072686568.png" alt="Changing the configuration to new settings in wordpress" width="650" height="42" class="size-full wp-image-10698" srcset="/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL32-e1443072686568.png 650w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL32-e1443072686568-300x19.png 300w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL32-e1443072686568-400x26.png 400w" sizes="(max-width: 650px) 100vw, 650px" /></a><p id="caption-attachment-10698" class="wp-caption-text">Changing the configuration to new settings in wordpress</p></div>
<p>Please do not forget to change the database name, user name , password too. </p>
<p>Now I am sure your blog with new MySQL database will be running . Keep blogging. Cheers!.</p>
<p><strong>Conclusion</strong></p>
<p>Did I miss anything that you may think which is needed?.Have you ever tried virtual machine in azure?. If not, I strongly recommend that. So we have successfully configured our new MySQL database to the Azure virtual machine and wordpress. We have also done the firewall changes needed in virtual machine. I hope you liked this article. Please share me your valuable suggestions and feedback.</p>
<p><strong>Your turn. What do you think?</strong></p>
<p>A blog isn’t a blog without comments, but do try to stay on topic. If you have a question unrelated to this post, you’re better off posting it on C# Corner, Code Project, Stack Overflow, Asp.Net Forum instead of commenting here. Tweet or email me a link to your question there and I’ll definitely try to help if I am able to.</p>
<p>Kindest Regards<br />
Sibeesh Venu</p>
]]></content:encoded>
					
					<wfw:commentRss>https://mail.sibeeshpassion.com/link-your-mysql-database-to-azure-virtual-machine-and-wordpress/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Back Up your ClearDB and restore in Azure Virtual Machine MySQL</title>
		<link>https://mail.sibeeshpassion.com/back-up-your-cleardb-and-restore-in-azure-virtual-machine-mysql/</link>
					<comments>https://mail.sibeeshpassion.com/back-up-your-cleardb-and-restore-in-azure-virtual-machine-mysql/#disqus_thread</comments>
		
		<dc:creator><![CDATA[SibeeshVenu]]></dc:creator>
		<pubDate>Fri, 18 Sep 2015 10:57:02 +0000</pubDate>
				<category><![CDATA[Azure]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Virtual Machine]]></category>
		<category><![CDATA[Azure Virtual Machine]]></category>
		<category><![CDATA[Back Up your ClearDB]]></category>
		<category><![CDATA[Restore ClearDB]]></category>
		<category><![CDATA[Restore MySQL]]></category>
		<guid isPermaLink="false">http://sibeecst_passion.com/?p=10629</guid>

					<description><![CDATA[[toc] Introduction This article explains how you can back up and restore your clear db MySQL database in a virtual machine in Azure. If you are new to azure virtual machine, I strongly recommend you to read here: Create Virtual Machine In Azure. You can also find how to install MySQL in Azure Virtual Machine here Install MySQL in Azure . I hope you will like this. If you are new to azure, I recommend you to read here: Azure Background I hope you read my articles related to Virtual Machines in azure. If not, please read those. I was [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>[toc]</p>
<h3>Introduction</h3>
<p>This article explains how you can back up and restore your clear db <a href="http://sibeeshpassion.com/category/mysql/" target="_blank">MySQL </a>database in a virtual machine in <a href="http://sibeeshpassion.com/tag/azure/" target="_blank">Azure</a>. If you are new to azure virtual machine, I strongly recommend you to read here: <a href="http://sibeeshpassion.com/create-virtual-machine-in-azure/" target="_blank">Create Virtual Machine In Azure</a>. You can also find how to install MySQL in Azure Virtual Machine here <a href="http://sibeeshpassion.com/install-mysql-in-azure-virtual-machine/" target="_blank">Install MySQL in Azure </a> . I hope you will like this.</p>
<p>If you are new to azure, I recommend you to read here: <a href="http://sibeeshpassion.com/category/azure/" target="_blank">Azure </a></p>
<h3>Background</h3>
<p>I hope you read my articles related to <a href="http://sibeeshpassion.com/category/virtual-machine/" target="_blank">Virtual Machines </a>in azure. If not, please read those. I was being limited to use only 20 MB size since one of the MSDN subscription was providing me ClearDB. So I thought of creating a virtual machine and install MySQL. Then I restored my previous Database to my new Database. Here in this article, I will share you the steps to back up and restore your database. </p>
<h3>Steps to Back Up your ClearDB and restore</h3>
<p>Login to your azure portal <a href="https://manage.windowsazure.com" target="_blank">https://manage.windowsazure.com</a></p>
<p>Login to your Azure <a href="http://sibeeshpassion.com/create-virtual-machine-in-azure/" target="_blank">Virtual Machine</a></p>
<p>Hope you have already installed MySQL in your Virtual Machine. If so, we are ready to go.</p>
<p>Go to start menu, and type MySQL, you will be shown some results. Click on the MySQL command line section.&#8217;</p>
<div id="attachment_10632" style="width: 363px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL1.png"><img decoding="async" aria-describedby="caption-attachment-10632" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL1.png" alt="Back Up your ClearDB and restore in Azure Virtual Machine MySQL" width="353" height="461" class="size-full wp-image-10632" srcset="/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL1.png 353w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL1-230x300.png 230w" sizes="(max-width: 353px) 100vw, 353px" /></a><p id="caption-attachment-10632" class="wp-caption-text">Back Up your ClearDB and restore in Azure Virtual Machine MySQL</p></div>
<p>Provide your MySQL password.</p>
<div id="attachment_10633" style="width: 603px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL2.png"><img decoding="async" aria-describedby="caption-attachment-10633" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL2.png" alt="Back Up your ClearDB and restore in Azure Virtual Machine MySQL" width="593" height="339" class="size-full wp-image-10633" srcset="/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL2.png 593w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL2-300x172.png 300w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL2-400x229.png 400w" sizes="(max-width: 593px) 100vw, 593px" /></a><p id="caption-attachment-10633" class="wp-caption-text">Back Up your ClearDB and restore in Azure Virtual Machine MySQL</p></div>
<p>You will be getting a welcome message as shown below.</p>
<div id="attachment_10634" style="width: 602px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL3.png"><img decoding="async" aria-describedby="caption-attachment-10634" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL3.png" alt="Back Up your ClearDB and restore in Azure Virtual Machine MySQL" width="592" height="344" class="size-full wp-image-10634" srcset="/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL3.png 592w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL3-300x174.png 300w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL3-400x232.png 400w" sizes="(max-width: 592px) 100vw, 592px" /></a><p id="caption-attachment-10634" class="wp-caption-text">Back Up your ClearDB and restore in Azure Virtual Machine MySQL</p></div>
<p>Create a database by executing a query as follows. </p>
<p>[sql]<br />
CREATE DATABASE DATABASENAME;<br />
[/sql]</p>
<div id="attachment_10635" style="width: 600px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL4.png"><img decoding="async" aria-describedby="caption-attachment-10635" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL4.png" alt="Back Up your ClearDB and restore in Azure Virtual Machine MySQL" width="590" height="336" class="size-full wp-image-10635" srcset="/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL4.png 590w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL4-300x171.png 300w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL4-400x228.png 400w" sizes="(max-width: 590px) 100vw, 590px" /></a><p id="caption-attachment-10635" class="wp-caption-text">Back Up your ClearDB and restore in Azure Virtual Machine MySQL</p></div>
<p>Go to start again, type cmd, right click and run as administrator on the result as follows.</p>
<div id="attachment_10636" style="width: 350px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL5.png"><img decoding="async" aria-describedby="caption-attachment-10636" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL5.png" alt="Back Up your ClearDB and restore in Azure Virtual Machine MySQL" width="340" height="395" class="size-full wp-image-10636" srcset="/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL5.png 340w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL5-258x300.png 258w" sizes="(max-width: 340px) 100vw, 340px" /></a><p id="caption-attachment-10636" class="wp-caption-text">Back Up your ClearDB and restore in Azure Virtual Machine MySQL</p></div>
<p>Go to MySQL bin folder by executing the commands as shown in the below image.</p>
<div id="attachment_10637" style="width: 660px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL6-e1442569873148.png"><img decoding="async" aria-describedby="caption-attachment-10637" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL6-e1442569873148.png" alt="Back Up your ClearDB and restore in Azure Virtual Machine MySQL" width="650" height="329" class="size-full wp-image-10637" srcset="/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL6-e1442569873148.png 650w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL6-e1442569873148-300x152.png 300w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL6-e1442569873148-400x202.png 400w" sizes="(max-width: 650px) 100vw, 650px" /></a><p id="caption-attachment-10637" class="wp-caption-text">Back Up your ClearDB and restore in Azure Virtual Machine MySQL</p></div>
<p>Before going through the back up process, we need to make sure that our website related files can be opened with on-line <a href="http://sibeeshpassion.com/category/visual-studio/" target="_blank">visual studio</a>.</p>
<p>For that you need to follow the below steps.</p>
<p>Go to your windows azure portal, click on the web application you need to edit. Once you done that, you can see the dashboard for that web application. Click on the configure.</p>
<div id="attachment_10638" style="width: 660px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL7-e1442570329396.png"><img decoding="async" aria-describedby="caption-attachment-10638" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL7-e1442570329396.png" alt="Back Up And Restore Your Old MySQL Database to New" width="650" height="331" class="size-full wp-image-10638" srcset="/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL7-e1442570329396.png 650w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL7-e1442570329396-300x153.png 300w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL7-e1442570329396-400x204.png 400w" sizes="(max-width: 650px) 100vw, 650px" /></a><p id="caption-attachment-10638" class="wp-caption-text">Back Up And Restore Your Old MySQL Database to New Database</p></div>
<p>Scroll down and switch on edit in visual studio on-line option.</p>
<div id="attachment_10639" style="width: 565px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL8.png"><img decoding="async" aria-describedby="caption-attachment-10639" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL8.png" alt="Back Up And Restore Your Old MySQL Database to New Database" width="555" height="197" class="size-full wp-image-10639" srcset="/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL8.png 555w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL8-300x106.png 300w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL8-400x142.png 400w" sizes="(max-width: 555px) 100vw, 555px" /></a><p id="caption-attachment-10639" class="wp-caption-text">Back Up And Restore Your Old MySQL Database to New Database</p></div>
<p>Now if you go to the options given in your dashboards right area, you can see edit in visual studio on-line option.</p>
<div id="attachment_10640" style="width: 282px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL9.png"><img decoding="async" aria-describedby="caption-attachment-10640" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL9.png" alt="Back Up And Restore Your Old MySQL Database to New Database" width="272" height="379" class="size-full wp-image-10640" srcset="/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL9.png 272w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL9-215x300.png 215w" sizes="(max-width: 272px) 100vw, 272px" /></a><p id="caption-attachment-10640" class="wp-caption-text">Back Up And Restore Your Old MySQL Database to New Database</p></div>
<p>Just click on that option, and you will be opened visual studio on-line with your application files.</p>
<div id="attachment_10641" style="width: 644px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL10.png"><img decoding="async" aria-describedby="caption-attachment-10641" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL10-1024x513.png" alt="Back Up And Restore Your Old MySQL Database to New Database" width="634" height="318" class="size-large wp-image-10641" srcset="/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL10-1024x513.png 1024w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL10-300x150.png 300w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL10-768x385.png 768w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL10-400x200.png 400w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL10.png 1180w" sizes="(max-width: 634px) 100vw, 634px" /></a><p id="caption-attachment-10641" class="wp-caption-text">Back Up And Restore Your Old MySQL Database to New Database</p></div>
<p>Now go back to your command prompt in your virtual machine and type a command as follows.</p>
<div id="attachment_10643" style="width: 566px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL11.png"><img decoding="async" aria-describedby="caption-attachment-10643" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL11.png" alt="Back Up And Restore Your Old MySQL Database to New Database" width="556" height="34" class="size-full wp-image-10643" srcset="/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL11.png 556w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL11-300x18.png 300w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL11-400x24.png 400w" sizes="(max-width: 556px) 100vw, 556px" /></a><p id="caption-attachment-10643" class="wp-caption-text">Back Up And Restore Your Old MySQL Database to New Database</p></div>
<p>In the above command, what we do is, creating back up from our old database to a new file . Make sure that you have given the correct details. </p>
<p> 1. User Name<br />
 2. Host Name<br />
 3. Database Name</p>
<p>These information you can get from the <em>wp-config.php</em> file from your web application folder. Remember we have enabled open with visual studio on-line option? Please go back to that and copy the needed information from <em>wp-config.php</em> file.</p>
<p>So once you execute that command you can get a script file in your c folder, In my case I gave the path as C and the file name as myolddb. So I got the script file as follows.</p>
<div id="attachment_10644" style="width: 660px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL12-e1442572352404.png"><img decoding="async" aria-describedby="caption-attachment-10644" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL12-e1442572352404.png" alt="Back Up And Restore Your Old MySQL Database to New Database" width="650" height="457" class="size-full wp-image-10644" srcset="/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL12-e1442572352404.png 650w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL12-e1442572352404-300x211.png 300w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL12-e1442572352404-400x281.png 400w" sizes="(max-width: 650px) 100vw, 650px" /></a><p id="caption-attachment-10644" class="wp-caption-text">Back Up And Restore Your Old MySQL Database to New Database</p></div>
<p>The next thing we need to do is, restoring the back up to our new database right? Hope you already got back up file. </p>
<p>Go to the command prompt again. Type the command as follows.</p>
<div id="attachment_10645" style="width: 684px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL13.png"><img decoding="async" aria-describedby="caption-attachment-10645" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL13.png" alt="Back Up And Restore Your Old MySQL Database to New Database" width="674" height="33" class="size-full wp-image-10645" srcset="/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL13.png 674w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL13-300x15.png 300w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL13-660x33.png 660w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL13-400x20.png 400w" sizes="(max-width: 674px) 100vw, 674px" /></a><p id="caption-attachment-10645" class="wp-caption-text">Back Up And Restore Your Old MySQL Database to New Database</p></div>
<p>Please be noted that you need to give your new username you have created for your new MySQL database and the new database name here. </p>
<p>In my case <em>vmmysqluser </em>was the username and <em>sibeeshpassion </em>is the database name.</p>
<p>Now it is time to check the database is restored or not. We have some set of queries for that.</p>
<p>First of all change the database to your new database.</p>
<p>[sql]<br />
use yournewdatabasename;<br />
[/sql]</p>
<p>When you run the above query, you will get a message saying database changed. </p>
<p>Now we will see the tables inside this new database.</p>
<p>[sql]<br />
show tables;<br />
[/sql]</p>
<p>It will result the list of tables inside this new database.</p>
<div id="attachment_10646" style="width: 597px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL14.png"><img decoding="async" aria-describedby="caption-attachment-10646" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL14.png" alt="Back Up And Restore Your Old MySQL Database to New Database" width="587" height="629" class="size-full wp-image-10646" srcset="/wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL14.png 587w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL14-280x300.png 280w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL14-400x429.png 400w, /wp-content/uploads/2015/09/Back_Up_your_ClearDB_and_restore_in_Azure_Virtual_Machine_MySQL14-560x600.png 560w" sizes="(max-width: 587px) 100vw, 587px" /></a><p id="caption-attachment-10646" class="wp-caption-text">Back Up And Restore Your Old MySQL Database to New Database</p></div>
<p>So we have successfully done back up and restoring our MySQL database in azure virtual machine. </p>
<h3>Conclusion</h3>
<p>Did I miss anything that you may think which is needed?.Have you ever tried virtual machine in azure?. If not, I strongly recommend that. Is this post helped you do back and restore your old database to new one? I hope you liked this article. Please share me your valuable suggestions and feedback.</p>
<h3>Your turn. What do you think?</h3>
<p>A blog isn’t a blog without comments, but do try to stay on topic. If you have a question unrelated to this post, you’re better off posting it on C# Corner, Code Project, Stack Overflow, Asp.Net Forum instead of commenting here. Tweet or email me a link to your question there and I’ll definitely try to help if I am able to.</p>
<p>Kindest Regards<br />
Sibeesh Venu</p>
]]></content:encoded>
					
					<wfw:commentRss>https://mail.sibeeshpassion.com/back-up-your-cleardb-and-restore-in-azure-virtual-machine-mysql/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install MySQL in Azure Virtual Machine</title>
		<link>https://mail.sibeeshpassion.com/install-mysql-in-azure-virtual-machine/</link>
					<comments>https://mail.sibeeshpassion.com/install-mysql-in-azure-virtual-machine/#disqus_thread</comments>
		
		<dc:creator><![CDATA[SibeeshVenu]]></dc:creator>
		<pubDate>Fri, 18 Sep 2015 06:35:21 +0000</pubDate>
				<category><![CDATA[Azure]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Virtual Machine]]></category>
		<category><![CDATA[Install MySQL in Azure Virtual Machine]]></category>
		<category><![CDATA[Virtual Machines]]></category>
		<guid isPermaLink="false">http://sibeecst_passion.com/?p=10599</guid>

					<description><![CDATA[This article will help you understand how you can install and set up MySQL in a virtual machine in Azure. Basically Azure virtual machine is a computer which you can configure according to your needs. It allows load balance traffic, so if you host your website or anything in the virtual machines, it will be fast enough. We can set up the virtual machines from your azure portal. If you are new to azure virtual machine, I strongly recommend you to read here: Create Virtual Machine In Azure. It will be great if you have any existing MSDN subscription with [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>This article will help you understand how you can install and set up MySQL in a virtual machine in <a href="http://sibeeshpassion.com/tag/azure/" target="_blank">Azure</a>. Basically Azure virtual machine is a computer which you can configure according to your needs. It allows load balance traffic, so if you host your website or anything in the virtual machines, it will be fast enough. We can set up the virtual machines from your azure portal. If you are new to azure virtual machine, I strongly recommend you to read here: <a href="http://sibeeshpassion.com/create-virtual-machine-in-azure/" target="_blank">Create Virtual Machine In Azure</a>. It will be great if you have any existing MSDN subscription with you before you go with this. Now we will discuss more about installing MySQL in a virtual machine in Azure. I hope you will like this.</p>
<p>If you are new to azure, I recommend you to read here: <a href="http://sibeeshpassion.com/category/azure/" target="_blank">Azure </a></p>
<p><strong>Background</strong></p>
<p>There are so many reasons why you should go with a virtual machine. I will share with you what exactly my need was. I was using a cleardb for my <a href="http://sibeeshpassion.com/tag/wordpress/" target="_blank">wordpress </a> website. I was some having some limitation that 20 MB as the <a href="http://sibeeshpassion.com/tag/database/" target="_blank">database </a>size. For me that was not sufficient, and after my db crosses the limit, I was not able to login to my wordpress dashboard. I was getting some database errors when I try to login to admin. So I decided to create a virtual machine and install a MySQL there. This article helps you to install MySQL in virtual machine. </p>
<p><strong>Steps to Install MySQL in Azure Virtual Machine </strong></p>
<p>Login to your azure portal <a href="https://manage.windowsazure.com" target="_blank">https://manage.windowsazure.com</a></p>
<p>Login to your Azure Virtual Machine</p>
<p>Go to start and click on the Internet Explorer</p>
<div id="attachment_10600" style="width: 559px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_1.png"><img decoding="async" aria-describedby="caption-attachment-10600" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_1.png" alt="Install MySQL in Azure Virtual Machine" width="549" height="545" class="size-full wp-image-10600" srcset="/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_1.png 549w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_1-150x150.png 150w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_1-300x298.png 300w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_1-130x130.png 130w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_1-400x397.png 400w" sizes="(max-width: 549px) 100vw, 549px" /></a><p id="caption-attachment-10600" class="wp-caption-text">Install MySQL in Azure Virtual Machine</p></div>
<p>Before going to download and install MySQL, you need to set some settings in Internet Explorer. </p>
<div id="attachment_10601" style="width: 660px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_2-e1442554040817.png"><img decoding="async" aria-describedby="caption-attachment-10601" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_2-e1442554040817.png" alt="Install MySQL in Azure Virtual Machine" width="650" height="407" class="size-full wp-image-10601" srcset="/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_2-e1442554040817.png 650w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_2-e1442554040817-300x188.png 300w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_2-e1442554040817-400x250.png 400w" sizes="(max-width: 650px) 100vw, 650px" /></a><p id="caption-attachment-10601" class="wp-caption-text">Install MySQL in Azure Virtual Machine</p></div>
<p>What we are going to do is, adding MySQL site name to trusted site in IE. </p>
<div id="attachment_10602" style="width: 431px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_3.png"><img decoding="async" aria-describedby="caption-attachment-10602" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_3.png" alt="Install MySQL in Azure Virtual Machine" width="421" height="542" class="size-full wp-image-10602" srcset="/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_3.png 421w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_3-233x300.png 233w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_3-400x515.png 400w" sizes="(max-width: 421px) 100vw, 421px" /></a><p id="caption-attachment-10602" class="wp-caption-text">Install MySQL in Azure Virtual Machine</p></div>
<p>Please follows the steps as shown in these images.</p>
<div id="attachment_10603" style="width: 430px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_4.png"><img decoding="async" aria-describedby="caption-attachment-10603" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_4.png" alt="Install MySQL in Azure Virtual Machine" width="420" height="540" class="size-full wp-image-10603" srcset="/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_4.png 420w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_4-233x300.png 233w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_4-400x514.png 400w" sizes="(max-width: 420px) 100vw, 420px" /></a><p id="caption-attachment-10603" class="wp-caption-text">Install MySQL in Azure Virtual Machine</p></div>
<p>Now add <em>http://*.mysql.com</em> to the trusted site. </p>
<div id="attachment_10604" style="width: 412px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_5.png"><img decoding="async" aria-describedby="caption-attachment-10604" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_5.png" alt="Install MySQL in Azure Virtual Machine" width="402" height="381" class="size-full wp-image-10604" srcset="/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_5.png 402w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_5-300x284.png 300w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_5-400x379.png 400w" sizes="(max-width: 402px) 100vw, 402px" /></a><p id="caption-attachment-10604" class="wp-caption-text">Install MySQL in Azure Virtual Machine</p></div>
<p>Now type <a href="http://dev.mysql.com/downloads/mysql" target="_blank">http://dev.mysql.com/downloads/mysql</a> in the URL area, and click enter.</p>
<div id="attachment_10605" style="width: 660px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_6-e1442554435374.png"><img decoding="async" aria-describedby="caption-attachment-10605" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_6-e1442554435374.png" alt="Install MySQL in Azure Virtual Machine" width="650" height="277" class="size-full wp-image-10605" srcset="/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_6-e1442554435374.png 650w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_6-e1442554435374-300x128.png 300w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_6-e1442554435374-400x170.png 400w" sizes="(max-width: 650px) 100vw, 650px" /></a><p id="caption-attachment-10605" class="wp-caption-text">Install MySQL in Azure Virtual Machine</p></div>
<p>Do not need to mind the warnings you get, so please close those.</p>
<div id="attachment_10606" style="width: 414px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_7.png"><img decoding="async" aria-describedby="caption-attachment-10606" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_7.png" alt="Install MySQL in Azure Virtual Machine" width="404" height="356" class="size-full wp-image-10606" srcset="/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_7.png 404w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_7-300x264.png 300w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_7-400x352.png 400w" sizes="(max-width: 404px) 100vw, 404px" /></a><p id="caption-attachment-10606" class="wp-caption-text">Install MySQL in Azure Virtual Machine</p></div>
<p>Now you can see the MySQL installer home page as shown below.</p>
<div id="attachment_10607" style="width: 644px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_8.png"><img decoding="async" aria-describedby="caption-attachment-10607" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_8-1024x542.png" alt="Install MySQL in Azure Virtual Machine" width="634" height="336" class="size-large wp-image-10607" srcset="/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_8-1024x542.png 1024w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_8-300x159.png 300w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_8-768x406.png 768w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_8-400x212.png 400w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_8.png 1091w" sizes="(max-width: 634px) 100vw, 634px" /></a><p id="caption-attachment-10607" class="wp-caption-text">Install MySQL in Azure Virtual Machine</p></div>
<p>Leave the warning, and close it.</p>
<div id="attachment_10608" style="width: 412px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_9.png"><img decoding="async" aria-describedby="caption-attachment-10608" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_9.png" alt="Install MySQL in Azure Virtual Machine" width="402" height="366" class="size-full wp-image-10608" srcset="/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_9.png 402w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_9-300x273.png 300w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_9-400x364.png 400w" sizes="(max-width: 402px) 100vw, 402px" /></a><p id="caption-attachment-10608" class="wp-caption-text">Install MySQL in Azure Virtual Machine</p></div>
<p>No, you will be asking to sign up, if you want you can do that, or else you can just skip it.</p>
<div id="attachment_10609" style="width: 660px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_10-e1442554807235.png"><img decoding="async" aria-describedby="caption-attachment-10609" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_10-e1442554807235.png" alt="Install MySQL in Azure Virtual Machine" width="650" height="349" class="size-full wp-image-10609" srcset="/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_10-e1442554807235.png 650w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_10-e1442554807235-300x161.png 300w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_10-e1442554807235-400x215.png 400w" sizes="(max-width: 650px) 100vw, 650px" /></a><p id="caption-attachment-10609" class="wp-caption-text">Install MySQL in Azure Virtual Machine</p></div>
<p>Now an executable file will be downloaded, you can either directly run it from the browser or you can just double click on that file.</p>
<div id="attachment_10610" style="width: 647px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_11.png"><img decoding="async" aria-describedby="caption-attachment-10610" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_11.png" alt="Install MySQL in Azure Virtual Machine" width="637" height="480" class="size-full wp-image-10610" srcset="/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_11.png 637w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_11-300x226.png 300w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_11-400x301.png 400w" sizes="(max-width: 637px) 100vw, 637px" /></a><p id="caption-attachment-10610" class="wp-caption-text">Install MySQL in Azure Virtual Machine</p></div>
<p>I hope your installation has been started now.</p>
<div id="attachment_10611" style="width: 650px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_12.png"><img decoding="async" aria-describedby="caption-attachment-10611" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_12.png" alt="Install MySQL in Azure Virtual Machine" width="640" height="480" class="size-full wp-image-10611" srcset="/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_12.png 640w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_12-300x225.png 300w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_12-400x300.png 400w" sizes="(max-width: 640px) 100vw, 640px" /></a><p id="caption-attachment-10611" class="wp-caption-text">Install MySQL in Azure Virtual Machine</p></div>
<p>Once it is done, please read the license agreement and click next.</p>
<div id="attachment_10612" style="width: 660px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_13-e1442555034258.png"><img decoding="async" aria-describedby="caption-attachment-10612" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_13-e1442555034258.png" alt="Install MySQL in Azure Virtual Machine" width="650" height="491" class="size-full wp-image-10612" srcset="/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_13-e1442555034258.png 650w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_13-e1442555034258-300x227.png 300w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_13-e1442555034258-400x302.png 400w" sizes="(max-width: 650px) 100vw, 650px" /></a><p id="caption-attachment-10612" class="wp-caption-text">Install MySQL in Azure Virtual Machine</p></div>
<p>As I do not need any development stuffs and I am not going to do any development there, so I just selected server only. You can select as per your needs. </p>
<div id="attachment_10613" style="width: 660px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_14-e1442555179352.png"><img decoding="async" aria-describedby="caption-attachment-10613" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_14-e1442555179352.png" alt="Install MySQL in Azure Virtual Machine" width="650" height="486" class="size-full wp-image-10613" srcset="/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_14-e1442555179352.png 650w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_14-e1442555179352-300x224.png 300w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_14-e1442555179352-400x299.png 400w" sizes="(max-width: 650px) 100vw, 650px" /></a><p id="caption-attachment-10613" class="wp-caption-text">Install MySQL in Azure Virtual Machine</p></div>
<p>In the type and networking section, please make sure that you have enabled &#8216;Show Advanced Options&#8217; as shown below.</p>
<div id="attachment_10614" style="width: 660px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_15-e1442555318544.png"><img decoding="async" aria-describedby="caption-attachment-10614" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_15-e1442555318544.png" alt="Install MySQL in Azure Virtual Machine" width="650" height="488" class="size-full wp-image-10614" srcset="/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_15-e1442555318544.png 650w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_15-e1442555318544-300x225.png 300w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_15-e1442555318544-400x300.png 400w" sizes="(max-width: 650px) 100vw, 650px" /></a><p id="caption-attachment-10614" class="wp-caption-text">Install MySQL in Azure Virtual Machine</p></div>
<p>Click next and give your MySQL Root Password in the next window. Please make sure that you have given a complex password.</p>
<div id="attachment_10615" style="width: 660px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_16-e1442555410304.png"><img decoding="async" aria-describedby="caption-attachment-10615" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_16-e1442555410304.png" alt="Install MySQL in Azure Virtual Machineq" width="650" height="493" class="size-full wp-image-10615" srcset="/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_16-e1442555410304.png 650w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_16-e1442555410304-300x228.png 300w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_16-e1442555410304-400x303.png 400w" sizes="(max-width: 650px) 100vw, 650px" /></a><p id="caption-attachment-10615" class="wp-caption-text">Install MySQL in Azure Virtual Machine</p></div>
<p>Click on the Add User.</p>
<div id="attachment_10618" style="width: 660px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_171-e1442555901225.png"><img decoding="async" aria-describedby="caption-attachment-10618" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_171-e1442555901225.png" alt="Install MySQL in Azure Virtual Machine" width="650" height="489" class="size-full wp-image-10618" srcset="/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_171-e1442555901225.png 650w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_171-e1442555901225-300x226.png 300w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_171-e1442555901225-400x301.png 400w" sizes="(max-width: 650px) 100vw, 650px" /></a><p id="caption-attachment-10618" class="wp-caption-text">Install MySQL in Azure Virtual Machine</p></div>
<p>Type the asked details.</p>
<div id="attachment_10619" style="width: 446px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_18.png"><img decoding="async" aria-describedby="caption-attachment-10619" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_18.png" alt="Install MySQL in Azure Virtual Machine" width="436" height="308" class="size-full wp-image-10619" srcset="/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_18.png 436w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_18-300x212.png 300w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_18-400x283.png 400w" sizes="(max-width: 436px) 100vw, 436px" /></a><p id="caption-attachment-10619" class="wp-caption-text">Install MySQL in Azure Virtual Machine</p></div>
<p>You can set all host if you want to access it from everywhere, or you can select local host. Choose wisely as your need. </p>
<div id="attachment_10620" style="width: 660px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_19-e1442557253336.png"><img decoding="async" aria-describedby="caption-attachment-10620" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_19-e1442557253336.png" alt="Install MySQL in Azure Virtual Machine" width="650" height="485" class="size-full wp-image-10620" srcset="/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_19-e1442557253336.png 650w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_19-e1442557253336-300x224.png 300w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_19-e1442557253336-400x298.png 400w" sizes="(max-width: 650px) 100vw, 650px" /></a><p id="caption-attachment-10620" class="wp-caption-text">Install MySQL in Azure Virtual Machine</p></div>
<p>I hope you have added a user, now please click next.</p>
<div id="attachment_10621" style="width: 660px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_20-e1442557337467.png"><img decoding="async" aria-describedby="caption-attachment-10621" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_20-e1442557337467.png" alt="Install MySQL in Azure Virtual Machine" width="650" height="489" class="size-full wp-image-10621" srcset="/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_20-e1442557337467.png 650w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_20-e1442557337467-300x226.png 300w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_20-e1442557337467-400x301.png 400w" sizes="(max-width: 650px) 100vw, 650px" /></a><p id="caption-attachment-10621" class="wp-caption-text">Install MySQL in Azure Virtual Machine</p></div>
<p>Now you will be in Windows Service section. Please make sure that &#8216;Start MySQL Server at System Startup&#8217; is enable. And do not change any other settings.</p>
<div id="attachment_10622" style="width: 660px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_21-e1442557513175.png"><img decoding="async" aria-describedby="caption-attachment-10622" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_21-e1442557513175.png" alt="Install MySQL in Azure Virtual Machine" width="650" height="488" class="size-full wp-image-10622" srcset="/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_21-e1442557513175.png 650w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_21-e1442557513175-300x225.png 300w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_21-e1442557513175-400x300.png 400w" sizes="(max-width: 650px) 100vw, 650px" /></a><p id="caption-attachment-10622" class="wp-caption-text">Install MySQL in Azure Virtual Machine</p></div>
<p>Now you will be shown advanced option which is nothing but the settings for error log informations. Do not need to change anything there. Just click next.</p>
<div id="attachment_10623" style="width: 660px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_22-e1442557626338.png"><img decoding="async" aria-describedby="caption-attachment-10623" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_22-e1442557626338.png" alt="Install MySQL in Azure Virtual Machine" width="650" height="488" class="size-full wp-image-10623" srcset="/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_22-e1442557626338.png 650w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_22-e1442557626338-300x225.png 300w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_22-e1442557626338-400x300.png 400w" sizes="(max-width: 650px) 100vw, 650px" /></a><p id="caption-attachment-10623" class="wp-caption-text">Install MySQL in Azure Virtual Machine</p></div>
<p>Please click on Execute, to apply the server configuration.</p>
<div id="attachment_10624" style="width: 660px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_23-e1442557719760.png"><img decoding="async" aria-describedby="caption-attachment-10624" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_23-e1442557719760.png" alt="Install MySQL in Azure Virtual Machine" width="650" height="492" class="size-full wp-image-10624" srcset="/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_23-e1442557719760.png 650w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_23-e1442557719760-300x227.png 300w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_23-e1442557719760-400x303.png 400w" sizes="(max-width: 650px) 100vw, 650px" /></a><p id="caption-attachment-10624" class="wp-caption-text">Install MySQL in Azure Virtual Machine</p></div>
<p>Click the Finish button, once the server configuration is applied successfully. </p>
<div id="attachment_10625" style="width: 660px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_24-e1442557838672.png"><img decoding="async" aria-describedby="caption-attachment-10625" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_24-e1442557838672.png" alt="Install MySQL in Azure Virtual Machine" width="650" height="491" class="size-full wp-image-10625" srcset="/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_24-e1442557838672.png 650w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_24-e1442557838672-300x227.png 300w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_24-e1442557838672-400x302.png 400w" sizes="(max-width: 650px) 100vw, 650px" /></a><p id="caption-attachment-10625" class="wp-caption-text">Install MySQL in Azure Virtual Machine</p></div>
<p>Now if you can you can copy the log to clipboard, or you can click Finish.</p>
<div id="attachment_10626" style="width: 660px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_25-e1442557955344.png"><img decoding="async" aria-describedby="caption-attachment-10626" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_25-e1442557955344.png" alt="Install MySQL in Azure Virtual Machine" width="650" height="486" class="size-full wp-image-10626" srcset="/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_25-e1442557955344.png 650w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_25-e1442557955344-300x224.png 300w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_25-e1442557955344-400x299.png 400w" sizes="(max-width: 650px) 100vw, 650px" /></a><p id="caption-attachment-10626" class="wp-caption-text">Install MySQL in Azure Virtual Machine</p></div>
<p>It seems we have done everything, Now we will check whether MySQL has been installed or not. Shall we? Please go to the start menu and type MySQL.</p>
<div id="attachment_10627" style="width: 644px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_26.png"><img decoding="async" aria-describedby="caption-attachment-10627" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_26-1024x539.png" alt="Install MySQL in Azure Virtual Machine" width="634" height="334" class="size-large wp-image-10627" srcset="/wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_26-1024x539.png 1024w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_26-300x158.png 300w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_26-768x404.png 768w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_26-600x315.png 600w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_26-400x211.png 400w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_26-1140x600.png 1140w, /wp-content/uploads/2015/09/Install_MySQL_in_Azure_Virtual_Machine_26.png 1290w" sizes="(max-width: 634px) 100vw, 634px" /></a><p id="caption-attachment-10627" class="wp-caption-text">Install MySQL in Azure Virtual Machine</p></div>
<p>Wow, that&#8217;s great we did it. </p>
<p><strong>Conclusion</strong></p>
<p>Did I miss anything that you may think which is needed?.Have you ever tried virtual machine in azure?. If not, I strongly recommend that. Did you ever installed MySQL in your system? I hope you liked this article. Please share me your valuable suggestions and feedback.</p>
<p><strong>Your turn. What do you think?</strong></p>
<p>A blog isn’t a blog without comments, but do try to stay on topic. If you have a question unrelated to this post, you’re better off posting it on C# Corner, Code Project, Stack Overflow, Asp.Net Forum instead of commenting here. Tweet or email me a link to your question there and I’ll definitely try to help if I am able to.</p>
<p>Kindest Regards<br />
Sibeesh Venu</p>
]]></content:encoded>
					
					<wfw:commentRss>https://mail.sibeeshpassion.com/install-mysql-in-azure-virtual-machine/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
