Getting started with MySQL on Amazon Web Services

  • 10,705 views
Uploaded on

Setting up MySQL on Amazon Web Services (AWS) …

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.

More in: Technology , Design
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
10,705
On Slideshare
0
From Embeds
0
Number of Embeds
7

Actions

Shares
Downloads
343
Comments
0
Likes
11

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 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. Using Amazon Web Services Overview http://ronaldbradford.com
  • 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. Using Amazon Web Services Terminology http://ronaldbradford.com
  • 5. Using Amazon Web Services Terminology ❖ AWS - Amazon Web Services ❖ EC2 - Elastic Compute Cloud ❖ S3 - Simple Storage Service http://ronaldbradford.com
  • 6. Using Amazon Web Services Signup for AWS (6 steps) http://ronaldbradford.com
  • 7. Using Amazon Web Services 1. Find AWS http://ronaldbradford.com
  • 8. Using Amazon Web Services http://ronaldbradford.com
  • 9. Using Amazon Web Services 2. Signup http://ronaldbradford.com
  • 10. Using Amazon Web Services 3. New User http://ronaldbradford.com
  • 11. Using Amazon Web Services 4. Enter Initial Details http://ronaldbradford.com
  • 12. Using Amazon Web Services 5. Enter Full Details http://ronaldbradford.com
  • 13. Using Amazon Web Services http://ronaldbradford.com
  • 14. Using Amazon Web Services 6. Check Email http://ronaldbradford.com
  • 15. Using Amazon Web Services Access Identifiers (7 steps) http://ronaldbradford.com
  • 16. Using Amazon Web Services 1. Access Key ID http://ronaldbradford.com
  • 17. Using Amazon Web Services 2. Secret Access Key http://ronaldbradford.com
  • 18. Using Amazon Web Services http://ronaldbradford.com
  • 19. Using Amazon Web Services 3. Account Number http://ronaldbradford.com
  • 20. Using Amazon Web Services 4. Create X.509 Certificate http://ronaldbradford.com
  • 21. Using Amazon Web Services 5. Confirm Key Creation http://ronaldbradford.com
  • 22. Using Amazon Web Services 6. Private Key File http://ronaldbradford.com
  • 23. Using Amazon Web Services 7. X.509 Certificate File http://ronaldbradford.com
  • 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. Using Amazon Web Services Register for EC2/S3 (7 steps) http://ronaldbradford.com
  • 26. Using Amazon Web Services 1. Start AWS Console http://ronaldbradford.com
  • 27. Using Amazon Web Services 2. Signup for EC2 http://ronaldbradford.com
  • 28. Using Amazon Web Services http://ronaldbradford.com
  • 29. Using Amazon Web Services 3. Enter CC Details http://ronaldbradford.com
  • 30. Using Amazon Web Services 4. Confirm CC Address http://ronaldbradford.com
  • 31. Using Amazon Web Services 5. Complete Signup http://ronaldbradford.com
  • 32. Using Amazon Web Services 6. Confirm EC2 Email http://ronaldbradford.com
  • 33. Using Amazon Web Services 7. Confirm S3 Email http://ronaldbradford.com
  • 34. Using Amazon Web Services Launching a server (8 steps) http://ronaldbradford.com
  • 35. Using Amazon Web Services 1. Select AWS Console http://ronaldbradford.com
  • 36. Using Amazon Web Services 2. Launch New Instance http://ronaldbradford.com
  • 37. Using Amazon Web Services http://ronaldbradford.com
  • 38. Using Amazon Web Services http://ronaldbradford.com
  • 39. Using Amazon Web Services http://ronaldbradford.com
  • 40. Using Amazon Web Services 3. Select Instance Type http://ronaldbradford.com
  • 41. Using Amazon Web Services 4. Generate Key Pair http://ronaldbradford.com
  • 42. Using Amazon Web Services http://ronaldbradford.com
  • 43. Using Amazon Web Services 5. Configure Firewall http://ronaldbradford.com
  • 44. Using Amazon Web Services 6. Configure Instance settings http://ronaldbradford.com
  • 45. Using Amazon Web Services http://ronaldbradford.com
  • 46. Using Amazon Web Services http://ronaldbradford.com
  • 47. Using Amazon Web Services 7. Confirm Instance Running http://ronaldbradford.com
  • 48. Using Amazon Web Services http://ronaldbradford.com
  • 49. Using Amazon Web Services 8. Verify Instance Operational http://ronaldbradford.com
  • 50. Using Amazon Web Services Accessing your server (2 steps) http://ronaldbradford.com
  • 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. Using Amazon Web Services 2. View modified home page http://ronaldbradford.com
  • 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. Using Amazon Web Services Shutting down (3 steps) http://ronaldbradford.com
  • 55. Using Amazon Web Services 1. Select Instance to terminate http://ronaldbradford.com
  • 56. Using Amazon Web Services 2. Confirm Termination Request http://ronaldbradford.com
  • 57. Using Amazon Web Services http://ronaldbradford.com
  • 58. Using Amazon Web Services 3. Verify Instance Terminated http://ronaldbradford.com
  • 59. Using Amazon Web Services Wrap up http://ronaldbradford.com
  • 60. Using Amazon Web Services Where to from here ❖ Elastic IP ❖ Elastic Block Store ❖ Custom AMIs http://ronaldbradford.com
  • 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. Using Amazon Web Services Don't forget ❖ System Monitoring ❖ External Host Monitoring ❖ Backups ❖ Test your recovery process http://ronaldbradford.com
  • 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