I've created a MySQL RDS on AWS console. Then I successfully connected to that RDS in MySQL Workbench using following steps:
- Connection Method: Standard (TCP/IP)
- Hostname: zargham.ccir1327bjhl.us-east-2.rds.amazonaws.com
- Port: 3306
- Username: [given at the time of RDS creation]
- Password: [given at the time of RDS creation]
Then I try to connect it in my Asp.net core application, and it is giving me error on openConnection(). Following connection string is used:
"Server=zargham.ccir1327bjhl.us-east-2.rds.amazonaws.com; Port=3306; Database=aws; Uid=[same as above]; Pwd=[correct Password];"
Although OpenConnection() successful when I connect to localhost on same port.