Wait until DB status become available.
Go to RDS - Databases - Select database - Actions - Set up EC2 connection.
Select EC2 you want to connect.
Two security group will be made and connect each other.
I've got username, password and DB name. I need url and port for making DB connection.
Go to RDS - Databases - Select one - Connectivity & security tab.
There is an endpoint & port.
Go to EC2 terminal then install mariadb. I will not use this mariadb server but I need a mysql client within the package.
Make a connection to RDB. Only inside EC2 that I setup connection can access to it.
Check variables for character set and collation. I can see the custom parameter group applied.
Last updated 1 year ago
sudo dnf install mariadb105.x86_64 -y
mysql -u admin -p --host our-company-lunch-db.c0u48asuozzj.ap-northeast-2.rds.amazonaws.com --port 3306
show variables where variable_name like 'c%';