I have installed a mysql server 5.5 on amazon EC2 machine. But cannot connect to it using C# using mysql-connecter-for-.net I used:
Hostname = IP Address of EC2 machine.
Port = 3306
username =
password =
But, it fires up error: "The connection must be open and valid".
I can't find any tutorial over internet. Please guide.
You need to edit your EC2 instance's security group. Add a MySQL entry with specify IP address (0.0.0.0/32 will accept connection from any IP address).
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.