AWS

How Can I Use MySQL Compatible Managed Database Services?

MySQL database service is used to create a managed database to store data in a proper manner and to innovate efficiently. It is the only database service that is 100% managed which means that the managerial issues are handled by the platform. AWS allows the user to create a database compatible with MySQL using its Relational Database Service (RDS).

This guide will explain how to use MySQL-compatible managed database service.

How Can I Use MySQL Compatible Managed Database Services?

To use MySQL compatible database, visit the RDS service from the AWS dashboard:

Click on the “Create database” button:

Select the database creation method and then select engine type as “Aurora (MySQL Compatible)”:

Select the version compatible with MySQL:

Select the template for the database and then type its name:

Enter the username and password for the database:

Configure the DB instance class:

Locate the “Connectivity” section to choose the compute resource and then select VPC for the DB cluster:

Choose the VPC security group or create a new one:

Allow the public access to connect to the RDS:

Configure the monitoring of the database:

Click on the “Create database” button:

Once the database is created, simply click on the link of its instance:

Head into the “Connectivity & security” section to copy the “Endpoint” and “Port”:

Use the following syntax to connect to the database:

mysql -h <Endpoint> -P <Port Number> -u <Username> -p

Change the “Endpoint”, “Port Number”, and “Username” according to RDS credentials:

mysql -h demo-instance-1.c6d50j4forkq.ap-southeast-1.rds.amazonaws.com -P 3306 -u admin -p

Running the above command will prompt the user to enter the password:

That’s all about using MySQL-compatible managed database service.

Conclusion

To use the MySQL-compatible managed database service, visit the RDS service from the AWS management service. Click on the “Create database” button and configure the engine compatible with MySQL. Once the database is created, simply use the endpoint and port number of the RDS to connect to it. This guide has explained the process of using MySQL-compatible managed database service.

About the author

Talha Mahmood

As a technical author, I am eager to learn about writing and technology. I have a degree in computer science which gives me a deep understanding of technical concepts and the ability to communicate them to a variety of audiences effectively.