dongyu4455
dongyu4455
2015-10-08 18:56

连接到Azure MySQL数据库

已采纳

I'm trying out Azure for the first time. I followed this guide to create a web application with a MySQL database.

So the DB node was create and I can see it in my resources and I can view the credentials in the properties. However, I can't connect to it from my desktop.

It looks like a firewall issue as I'm unable to telnet to it:

telnet us-cdbr-azure-west-c.cloudapp.net 3306
Trying 104.209.43.4...
telnet: connect to address 104.209.43.4: Operation timed out
telnet: Unable to connect to remote host    

Can anyone tell me what I'm doing wrong?

Thanks in advance.

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

1条回答

  • douren7921 douren7921 6年前

    Usually, this issue is raised due to IP or Port is blocked by firewall.

    As the comments show that others can connect to your MySQL server, so I think we can exclude that server side firewall blocked your IP and Port.

    If you are in a protect network environment, check whether the gateway of network has a white list and your MySQL server endpoint is in the list, or whether the gateway has block the 3306 port. You can change a network environment if possible to check this.

    Another attempt is that you can change a PC to have a test to connect to your MySQL server. If it could work, you can compare with the successful PC firewall configuration.

    点赞 评论 复制链接分享