{"id":21352199,"url":"https://github.com/kennethleungty/aws-rds-mysql-python","last_synced_at":"2025-07-12T21:30:41.019Z","repository":{"id":43305503,"uuid":"457204423","full_name":"kennethleungty/AWS-RDS-MySQL-Python","owner":"kennethleungty","description":"Integrating Amazon RDS, MySQL Workbench, and PyMySQL to build and deploy a database on the cloud","archived":false,"fork":false,"pushed_at":"2022-02-09T12:58:40.000Z","size":2135,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-03-05T18:11:14.687Z","etag":null,"topics":["aws","aws-rds","aws-rds-mysql","data-science","database","database-management","mysql","mysql-database","pymysql","python","rdbms","sql"],"latest_commit_sha":null,"homepage":"https://towardsdatascience.com/definitive-guide-to-create-an-sql-database-on-cloud-with-aws-and-python-c818c7270af2","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kennethleungty.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-09T04:13:23.000Z","updated_at":"2023-02-26T14:29:32.000Z","dependencies_parsed_at":"2022-09-01T12:21:37.243Z","dependency_job_id":null,"html_url":"https://github.com/kennethleungty/AWS-RDS-MySQL-Python","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kennethleungty%2FAWS-RDS-MySQL-Python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kennethleungty%2FAWS-RDS-MySQL-Python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kennethleungty%2FAWS-RDS-MySQL-Python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kennethleungty%2FAWS-RDS-MySQL-Python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kennethleungty","download_url":"https://codeload.github.com/kennethleungty/AWS-RDS-MySQL-Python/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225834368,"owners_count":17531471,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","aws-rds","aws-rds-mysql","data-science","database","database-management","mysql","mysql-database","pymysql","python","rdbms","sql"],"created_at":"2024-11-22T03:12:58.138Z","updated_at":"2024-11-22T03:12:58.683Z","avatar_url":"https://github.com/kennethleungty.png","language":"Jupyter Notebook","readme":"## Definitive Guide to Creating a SQL Database on Cloud with AWS and Python\n#### An easy-to-follow comprehensive guide on integrating Amazon RDS, MySQL Workbench, and PyMySQL to build and deploy a database in the cloud for Python applications\n\nLink to article: https://towardsdatascience.com/definitive-guide-to-create-an-sql-database-on-cloud-with-aws-and-python-c818c7270af2\n\n___\n### Contents\n**Files**\n- `Example-Notebook.ipynb`: Main notebook with sample codes on using PyMySQL and general Python functions to connect to Amazon RDS database instance and perform CRUD operations.\n- `config.py`: Configuration file comprising key database connection parameters\n\n**Folders**\n- `/ssl`: Folder containing the bundle file of SSL certificates (for encrypted SSL connection between local client and RDS database instance)\n- `/assets`: Folder containing the various screenshots in the step-by-step guide\n\n___\n### Motivation\n- In the midst of building a web application for a client, I came across the need to set up a database system to store valuable user traffic data\n- While each component (i.e. AWS RDS, MySQL Workbench, and PyMySQL) is easy to work with, integrating them together to form a closed-loop system proved to be relatively challenging.\n- This is especially true given that online resources tend to be fragmented, with numerous important caveats and hurdles not clearly explained and illustrated.\n- Having overcome these challenges to successfully set up a production database in AWS, I believe it would be important to share this information with the community, including my future self.\n\n___\n### References\n- [Connect RDS - MySQL Workbench (AWS)](https://aws.amazon.com/premiumsupport/knowledge-center/connect-rds-mysql-workbench/)\n- [Be A Better Dev (Youtube)](https://www.youtube.com/channel/UCraiFqWi0qSIxXxXN4IHFBQ)\n- [Download SSL Certificate (AWS)](https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-download-ssl-certificate-for-managed-database)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkennethleungty%2Faws-rds-mysql-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkennethleungty%2Faws-rds-mysql-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkennethleungty%2Faws-rds-mysql-python/lists"}