Quantcast
Channel: Toad for MySQL
Viewing all articles
Browse latest Browse all 1315

Blog Post: Howto: Connect Toad to your MS Azure Hosted DB image

$
0
0
Microsoft is getting some well deserved attention for their cloud computing offerings. And since hockey great Wayne Gretzky is also apparently a career advice guru, I decided to check out ‘where the puck was headed, instead of where it is ’. With that sage advice echoing through my head, I took the time to do some experimentation with a Virtual Machine hosted on Microsoft Azure Cloud. To summarize, I created a Windows 10 barebones image using Microsoft Azure and then installed MySQL Server on it, opened all of the necessary endpoints and firewall ports and then connected my local DB tool Toad for MySQL (or any DB tool, I also used Toad Data Point ) to that image. I won't walk you through *all* of those steps (they should be easy, right?), but will instead focus on the ‘new to me’ steps which at least for me seemed a little trickier (so hopefully worthwhile to document). So, to summarize, here's a quick overview of the entire process: 1) Create Azure Account and Windows 10 hosted image - You’re on your own for these, there's tons of info out there, this process is not in the scope of this doc. 2) In Azure web interface - How to Create an Endpoint so you can access the hosted image remotely. 3) In Windows 10 - How to configure Windows Firewall to allow an external connection. 4) Azure/MySQL - How to create a new user that can access the Windows 10 Hosted MySQL database remotely Following are the detailed steps and links to reference materials that i used to complete this exercise: 1 - Create Azure Account and Windows 10 hosted image - On your own for this, use bing, Alta Vista or AskJeeves :) 2 - In MS Azure web console, create endpoint. Source - http://thomaslarock.com/2014/02/connect-to-a-windows-azure-vm-using-sql-server-management-studio/ 3 - Now in MS Azure hosted Windows 10 image that you created an endpoint on in the previous step, configure the Windows firewall: 4 - On the Windows image hosted on the Azure Instance, launch the MySQL Command Line Client and create a new MySQL user. NOTE: This step is necessary because the default MySQL user accounts can't connect remotely. If you care to know why, here is a thread describing the problem and solution... Source - http://stackoverflow.com/questions/1559955/host-xxx-xx-xxx-xxx-is-not-allowed-to-connect-to-this-mysql-server If you don't have time to dig thru the minueta of that stackoverflow thread, here’s the relevant steps to create the new user: Launch MySQL Command Line Client on the machine hosting MySQL Server - Actual Syntax and command line output is this: mysql> create user 'dell'@'%' IDENTIFIED BY 'dell'; Query OK, 0 rows affected (0.00 sec) mysql> GRANT ALL PRIVILEGES ON *.* TO 'dell'@'%' WITH GRANT OPTION; Query OK, 0 rows affected (0.00 sec) mysql> FLUSH PRIVILEGES; Query OK, 0 rows affected (0.00 sec) mysql> Fire up Toad for MySQL (or Toad Data Point as I’ve done in the screenshot or your favorite DB tool) and connect as username/password (in this example dell/dell), and success, you are now connected to a remote MySQL DB hosted on a Microsoft Azure virtual image! Let me know how it works for you! If you’d like to learn more, check out the Toad for MySQL user community on ToadWorld or download Toad for MySQL for free and try it yourself.

Viewing all articles
Browse latest Browse all 1315

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>