Ravi Sir's Cards › AWS
Connect and run a query
This revision card explains Connect and run a query. A cluster that nobody queries teaches nothing — and security groups often block you. It describes allow the client SG or CloudShell path to port 3306/5432. Use mysql/psql against the cluster endpoint with SSL as required. The how-to section notes from EC2 or notes — mysql -h CLUSTER_ENDPOINT -u admin -p , then CREATE DATABASE lab; SELECT 1;. An example on the card is query returns 1; a lab table insert is visible on a reconnect.
Read card text
What this card says
Why do we need it?
A cluster that nobody queries teaches nothing — and security groups often block you.
What is it?
Allow the client SG or CloudShell path to port 3306/5432. Use mysql/psql against the cluster endpoint with SSL as required.
3306
How to do it
From EC2 or notes: mysql -h CLUSTER_ENDPOINT -u admin -p → CREATE DATABASE lab; SELECT 1;
Example
Query returns 1; a lab table insert is visible on a reconnect.