2
Answers

Can not connect to MySql database?

Deepak M

Deepak M

2y
950
1

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)