Getting started with MySQL on Amazon Web Services

11,485 views
11,383 views

Published on

Setting up MySQL on Amazon Web Services (AWS)

Ronald Bradford, Principal at 42SQL will step you though getting started with AWS.

This introduction will assume you no nothing about AWS, and have no account. With Internet access via a Browser and a valid Credit Card, you can have your own running Web Server on the Internet in under 10 minutes, just point and click.

We will step into some more detail using the supplied command line tools for more advanced usage.

Published in: Technology, Design
0 Comments
11 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
11,485
On SlideShare
0
From Embeds
0
Number of Embeds
8
Actions
Shares
0
Downloads
361
Comments
0
Likes
11
Embeds 0
No embeds

No notes for slide

Getting started with MySQL on Amazon Web Services

  1. 1. Using Amazon Web Services Using Amazon Web Services A Beginners Guide for MySQL Users Ronald Bradford Principal - 42SQL MySQL Camp 2009 Santa Clara - April 2009 http://ronaldbradford.com Version .1.0 19.Apr.2009
  2. 2. Using Amazon Web Services Overview http://ronaldbradford.com
  3. 3. Using Amazon Web Services This presentation assumes you have never used Amazon Web Services (AWS) in any way. We will step through a tutorial to create an AWS account, login, start a server, and access the running server on the Internet. Time: 20 minutes Cost: $1.50 Investment http://ronaldbradford.com
  4. 4. Using Amazon Web Services Terminology http://ronaldbradford.com
  5. 5. Using Amazon Web Services Terminology ❖ AWS - Amazon Web Services ❖ EC2 - Elastic Compute Cloud ❖ S3 - Simple Storage Service http://ronaldbradford.com
  6. 6. Using Amazon Web Services Signup for AWS (6 steps) http://ronaldbradford.com
  7. 7. Using Amazon Web Services 1. Find AWS http://ronaldbradford.com
  8. 8. Using Amazon Web Services http://ronaldbradford.com
  9. 9. Using Amazon Web Services 2. Signup http://ronaldbradford.com
  10. 10. Using Amazon Web Services 3. New User http://ronaldbradford.com
  11. 11. Using Amazon Web Services 4. Enter Initial Details http://ronaldbradford.com
  12. 12. Using Amazon Web Services 5. Enter Full Details http://ronaldbradford.com
  13. 13. Using Amazon Web Services http://ronaldbradford.com
  14. 14. Using Amazon Web Services 6. Check Email http://ronaldbradford.com
  15. 15. Using Amazon Web Services Access Identifiers (7 steps) http://ronaldbradford.com
  16. 16. Using Amazon Web Services 1. Access Key ID http://ronaldbradford.com
  17. 17. Using Amazon Web Services 2. Secret Access Key http://ronaldbradford.com
  18. 18. Using Amazon Web Services http://ronaldbradford.com
  19. 19. Using Amazon Web Services 3. Account Number http://ronaldbradford.com
  20. 20. Using Amazon Web Services 4. Create X.509 Certificate http://ronaldbradford.com
  21. 21. Using Amazon Web Services 5. Confirm Key Creation http://ronaldbradford.com
  22. 22. Using Amazon Web Services 6. Private Key File http://ronaldbradford.com
  23. 23. Using Amazon Web Services 7. X.509 Certificate File http://ronaldbradford.com
  24. 24. Using Amazon Web Services Checklist ❖ Access Key ID ❖ Secret Access Key ❖ Account Number ❖ X.509 Private Key File ❖ X.509 Certificate File http://ronaldbradford.com
  25. 25. Using Amazon Web Services Register for EC2/S3 (7 steps) http://ronaldbradford.com
  26. 26. Using Amazon Web Services 1. Start AWS Console http://ronaldbradford.com
  27. 27. Using Amazon Web Services 2. Signup for EC2 http://ronaldbradford.com
  28. 28. Using Amazon Web Services http://ronaldbradford.com
  29. 29. Using Amazon Web Services 3. Enter CC Details http://ronaldbradford.com
  30. 30. Using Amazon Web Services 4. Confirm CC Address http://ronaldbradford.com
  31. 31. Using Amazon Web Services 5. Complete Signup http://ronaldbradford.com
  32. 32. Using Amazon Web Services 6. Confirm EC2 Email http://ronaldbradford.com
  33. 33. Using Amazon Web Services 7. Confirm S3 Email http://ronaldbradford.com
  34. 34. Using Amazon Web Services Launching a server (8 steps) http://ronaldbradford.com
  35. 35. Using Amazon Web Services 1. Select AWS Console http://ronaldbradford.com
  36. 36. Using Amazon Web Services 2. Launch New Instance http://ronaldbradford.com
  37. 37. Using Amazon Web Services http://ronaldbradford.com
  38. 38. Using Amazon Web Services http://ronaldbradford.com
  39. 39. Using Amazon Web Services http://ronaldbradford.com
  40. 40. Using Amazon Web Services 3. Select Instance Type http://ronaldbradford.com
  41. 41. Using Amazon Web Services 4. Generate Key Pair http://ronaldbradford.com
  42. 42. Using Amazon Web Services http://ronaldbradford.com
  43. 43. Using Amazon Web Services 5. Configure Firewall http://ronaldbradford.com
  44. 44. Using Amazon Web Services 6. Configure Instance settings http://ronaldbradford.com
  45. 45. Using Amazon Web Services http://ronaldbradford.com
  46. 46. Using Amazon Web Services http://ronaldbradford.com
  47. 47. Using Amazon Web Services 7. Confirm Instance Running http://ronaldbradford.com
  48. 48. Using Amazon Web Services http://ronaldbradford.com
  49. 49. Using Amazon Web Services 8. Verify Instance Operational http://ronaldbradford.com
  50. 50. Using Amazon Web Services Accessing your server (2 steps) http://ronaldbradford.com
  51. 51. Using Amazon Web Services $ ssh -i 42sqlexample.pem root@ec2-174-129-116-164.compute-1.amazonaws.com $ cd /home/webuser/helloworld/htdocs $ echo quot;<html><head> <title>Your Own Web Server</title> <meta http-equiv=quot;Content-Typequot; content=quot;text/html; charset=ISO-8859-1quot;> </head><body> <h1>Your own Web Server running on AWS</h1> <p>A demonstration for MySQL Camp 2009, Santa Clara, April 2009</p> <p>Thanks to <a href=quot;http://ronaldbradford.comquot;>Ronald Bradford</a> - MySQL Expert</p> </body></html>quot; > index.php 1. Modify home page content http://ronaldbradford.com
  52. 52. Using Amazon Web Services 2. View modified home page http://ronaldbradford.com
  53. 53. Using Amazon Web Services For Windows Users ❖ Download Putty http://www.chiark.greenend.org.uk/~sgtatham/putty/ ❖ Refer to Putty Instructions http://docs.amazonwebservices.com/AWSEC2/2007-08-29/GettingStartedGuide/ putty.html http://ronaldbradford.com
  54. 54. Using Amazon Web Services Shutting down (3 steps) http://ronaldbradford.com
  55. 55. Using Amazon Web Services 1. Select Instance to terminate http://ronaldbradford.com
  56. 56. Using Amazon Web Services 2. Confirm Termination Request http://ronaldbradford.com
  57. 57. Using Amazon Web Services http://ronaldbradford.com
  58. 58. Using Amazon Web Services 3. Verify Instance Terminated http://ronaldbradford.com
  59. 59. Using Amazon Web Services Wrap up http://ronaldbradford.com
  60. 60. Using Amazon Web Services Where to from here ❖ Elastic IP ❖ Elastic Block Store ❖ Custom AMIs http://ronaldbradford.com
  61. 61. Using Amazon Web Services Useful tools ❖ Elastic Fox ❖ S3 Fox ❖ AWS CLI tools http://sourceforge.net/projects/elasticfox/ http://www.s3fox.net/ http://docs.amazonwebservices.com/AWSEC2/2007-08-29/GettingStartedGuide/ http://ronaldbradford.com
  62. 62. Using Amazon Web Services Don't forget ❖ System Monitoring ❖ External Host Monitoring ❖ Backups ❖ Test your recovery process http://ronaldbradford.com
  63. 63. Using Amazon Web Services Professional Help is Available ❖ Two decades IT expertise ❖ 10 years in MySQL ❖ System/Data Architecture ❖ Database Performance and Tuning ❖ High Availability and Scalability ❖ Education and Training http://ronaldbradford.com http://ronaldbradford.com

×