简体   繁体   中英

not able to connect to mysql running on amazon ec2 instance

I'm running mysql on ec2 instance. I can connect to this db by doing an SSH to that instance and then connecting to mysql server on command line. But when I try connecting to it via mysql JDBC I get connection timeout error. I have an RDS instance also that has mysql to which I can connect through mysql JDBC. What might be the issue?

转到ec2实例的安全设置,请打开端口号3306,您应该可以连接到mysql

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM