Deepak M

Deepak M

  • 1.2k
  • 546
  • 36.5k

Can not connect to MySql database?

Nov 15 2022 6:02 AM

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?


Answers (2)