AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
![]() So the tunneling process requires separate software. TOAD for MySQL requires an additional step as is it does not have a built-in SSH tunneling option. R) to connect to the database then this approach alone will not work. ![]() However, this will only work for MySQL Workbench and if you want to use other software (e.g. Using MySQL Workbench is probably the easiest way to connect as the connection process is all self-contain. Then you can use the database username and password you created (or were provided from the database administrator). Once you have connected to the remote location it is now relative to the remote location and MySQL Hostname will be on localhost (though you can create more complex connections). The database host is relative to the SSH connection. The SSH Key File is the file that is generated from Amazon. This particular Amazon instance uses the username ubuntu. The Public DNS from the instance can be added to the SSH Hostname line. MySQL Workbench is probably the easiest as everything can be done right from within MySQL WorkBench. One additional tip is to turn off any locally running MySQL database on your desktop. I generally use an Ubuntu operating system on an Amazon instance so some of the connection information is specific to that instance type (e.g. pem file should already be saved to your local hard drive. The Public DNS can just be copied and pasted from the specific AWS instance you want to connect. IP Addresses) set up so that a database connection (for MySQL usually through port 3306) can be made from wherever you are located.Īll that is needed is the Public DNS that is available once you start your Amazon instance and the key pair file (.pem) used for the Amazon instance (the one Amazon tells you not to lose). Make sure you have all the security groups (i.e. If you’re reading this article then I’ll assume that you already know about Amazon EC2 and are familiar with the basics. It’s not terribly difficult to connect to EC2 but it is also not as simple as typing localhost as it requires a few additional steps. I generally use MySQL Workbench when I’m sitting on a Linux-based operating system and TOAD when I’m on Windows. I tend to use either TOAD for MySQL or MySQL Workbench to run and test queries against a MySQL database. In this tutorial I’ll share how to connect to a MySQL database so that one can retrieve the data and do the analysis. I often use Amazon EC2 to store and retrieve data when I need either additional storage or higher computing capacity.
0 Comments
Read More
Leave a Reply. |