简体   繁体   中英

Remote access to MySQL on Amazon EC2 Windows instance

I found some solutions for Linux here .

But didn't find any solution for Windows. I don't have my.cnf on Windows. I only have my.ini. there is no bind-address in it.

I have already added an inbound rule for MySQL.

Could anybody give me some advice? Thanks a lot!!!

Here's what I would check:

  1. Verify that the MySQL service is up and running by remote desktop'ing to the instance and trying to connect to it on the instance.
  2. If that checks out, try modifying or disabling Windows Firewall to ensure that outside machines can connect on the relevant port. Depending on the Windows version, there might be several places that you need to fiddle with this (ie both Windows Firewall and Windows Firewall with advanced security).

如果您将Asp.Net应用程序与Entity Framework一起使用,则需要在EC2实例上安装MySQL连接器(我建议运行iisreset以确保已加载dll)。

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