Norman Domingo
New Member
- Joined
- Jul 2, 2014
- Messages
- 8
- Reaction score
- 1
I have installed PIAF Green using the piaf-green-asterisk11-2-1-freepbx2-11 ami on EC2 and installed Travelin Man.
I'm working my way on creating an IVR which is dependent on MySQL data. I have a website written on asp.net and hosted on SmarterAsp and MochaHost which serves as my data source. My asp.net site needed to access the MySQL database on my EC2 which is used by my IVR.
My problem is that my asp.net site throws an exception "Unable to connect to any of the specified MySQL hosts" when it connects to MySQL on EC2. I have a dedicated ip on both of my hosting sites.
I don't get the exception when I run my asp.net application on my home computer which uses Comcast dsl and also on my work.
My MySQL my.cnf is very basic:
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
port=3306
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
I follow the following steps so my asp.net site can connect remotely to MySql
1. Created MySQL user account using GRANT ALL ON dbname.* TO user@'theIP' IDENTIFIED BY 'password'
2. Add MySQL/TCP/3306/theIP to my EC2 Security Groups
3. Add theIP using add-ip
The steps above are the same steps I used for my home and work computer and they both work but not for my 2 external hosting accounts.
I have contacted amazon and my hosting providers but they all claim that the problem is not on their side. Giving them the benefit of the doubt, I am now left with the piaf-green-asterisk11-2-1-freepbx2-11 ami I used. What could possibly be blocking the requests of my external hosting sites when they connect on port 3306?
Any insight and help will be greatly appreciated.
I'm working my way on creating an IVR which is dependent on MySQL data. I have a website written on asp.net and hosted on SmarterAsp and MochaHost which serves as my data source. My asp.net site needed to access the MySQL database on my EC2 which is used by my IVR.
My problem is that my asp.net site throws an exception "Unable to connect to any of the specified MySQL hosts" when it connects to MySQL on EC2. I have a dedicated ip on both of my hosting sites.
I don't get the exception when I run my asp.net application on my home computer which uses Comcast dsl and also on my work.
My MySQL my.cnf is very basic:
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
port=3306
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
I follow the following steps so my asp.net site can connect remotely to MySql
1. Created MySQL user account using GRANT ALL ON dbname.* TO user@'theIP' IDENTIFIED BY 'password'
2. Add MySQL/TCP/3306/theIP to my EC2 Security Groups
3. Add theIP using add-ip
The steps above are the same steps I used for my home and work computer and they both work but not for my 2 external hosting accounts.
I have contacted amazon and my hosting providers but they all claim that the problem is not on their side. Giving them the benefit of the doubt, I am now left with the piaf-green-asterisk11-2-1-freepbx2-11 ami I used. What could possibly be blocking the requests of my external hosting sites when they connect on port 3306?
Any insight and help will be greatly appreciated.