java - Unable to connect to Amazon RDS DBInstance via Hibernate or sqlplus -


i have created dbinstance in rds. have added vpc security group subnet including machines ip sending requests. however, not able connect dbinstance yet. connection times out. specifying following details in hibernate.cfg.xml:

<session-factory>  <property name="hibernate.dialect">   org.hibernate.dialect.mysql5innodbdialect  </property>  <property name="hibernate.connection.driver_class">   com.mysql.jdbc.driver  </property>  <property name="hibernate.connection.url">   jdbc:mysql://{dbinstancename}.us-west-2.rds.amazonaws.com:3306/{dbname}  </property>  <property name="hibernate.connection.username">   {username}  </property>  <property name="hibernate.connection.password">   {password}  </property> </session-factory> 

i out of ideas on wrong. appreciated.

p.s: tried connecting using sqlplus in vain.

thanks.

log aws account, go rds, click on security groups. make sure security group set allow ip address connect rds (add cidr appropriate security group).

more information can found here working db security groups


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

visual studio 2010 - Connect to informix database windows form application -

android - Associate same looper with different threads -