Course description

In this hands-on lab, you will deploy a fully functional MySQL database server on an Amazon EC2 instance running Red Hat Enterprise Linux. You'll start by launching an EC2 instance with appropriate security groups allowing SSH and MySQL traffic. Then, you'll install MySQL, retrieve the temporary root password, secure the installation, and create a dedicated database user with remote access privileges. Finally, you'll test remote connectivity using the MySQL command-line client. By the end of this lab, you'll have the skills to set up a secure, remotely accessible MySQL database server in the cloud.

What will i learn?

  • Launch an EC2 instance with security groups allowing SSH and MySQL traffic
  • Install and configure MySQL Server on a Linux instance
  • Retrieve and change the MySQL root password
  • Create a new MySQL user with remote access privileges
  • Connect to the MySQL database remotely using the command-line client

Requirements

  • An active AWS account with EC2 access
  • Basic familiarity with AWS Management Console and Linux command line
  • An SSH client (e.g., Git Bash, Terminal, or PuTTY)
  • A downloaded key pair for EC2 instance access
  • Understanding of basic MySQL commands

Frequently asked question

Port 3306 is the default port for MySQL. Opening it allows remote clients to connect to your MySQL database server from outside the EC2 instance.

For production environments, it's recommended to restrict access to specific IP addresses. In this lab, we use 0.0.0.0/0 for simplicity, but best practice is to limit inbound traffic to trusted IPs.

Yes, the installation steps will vary slightly (using apt instead of dnf), but the overall process is similar. This lab uses RHEL for demonstration.

Akinola Ojuola

Cloud Solution Architect, DevOps Consultant & Trainer

Akinola Ojuola is a seasoned Cloud Solution Architect, DevOps Consultant and technical trainer with over 20 years of industry expertise. Throughout his career, he has worked with some of the world’s most prominent technology-driven organisations, including IBM, Fujitsu, Walmart, and MasterCard, delivering transformative solutions across various sectors. Akinola has trained and mentored more than 1,000 students across 18 countries on five continents. His commitment to real-world, practical learning has enabled hundreds of learners to launch successful careers in global tech companies. He is passionate about practical, real-world learning. His teaching approach blends deep technical knowledge with hands-on, enterprise-level experience. He holds multiple industry certifications and leads advanced projects in Cloud Architecture, DevOps, DevSecOps, and Artificial Intelligence for both private enterprises and public institutions.Whether you’re just starting or looking to advance your tech career, you’ll gain valuable, job-ready skills under his guidance.

$10

Lectures

1

Skill level

Beginner

Expiry period

1 Months

Certificate

Yes

Related courses