Hi All,
When I am trying to connect AWS MySql database it's showing error
MySqlConnector.MySqlException: 'Connect Timeout expired.'
Inner Exception
MySqlException: Unable to connect to any of the specified MySQL hosts.
My connection string : "Server=xxxxx-xxxxx.xxxxxx.us-east-2.rds.amazonaws.com;Port=3306;Database=MyDatabase;User=root;Password=******;default command timeout=0;"
Can any one help?

Amit MohantyRank #112 · 20K reputationPosted Nov 15, 2022, 5:07 AM EST
Ask your server administrator to allow your system IP from where you run the application. After that I think it will work.
Deepak MRank #6,212 · 273 reputationPosted Nov 15, 2022, 7:24 AM EST
Thank you.