Mandler
02-09-2010, 09:35 PM
I want to experiment using Amazon's (MySQL) RDS service from FQ. That way, I can keep my web hosting here and push any heavy database loads to Amazon.
Using my local machine, I was able to set up a database instance on Amazon (which requires using a terminal with Java), and was then able to get Navicat to connect to the database in the same way that I am able to connect to MySQL on FQ. Now, I want to try using API calls via PHP so that my website scripts can interact with the database.
To use my local machine, I set Amazon to accept connections from my IP. In Navicat, I entered the User Name and Password as I normally would, and used the default port 3306.
Here are my questions: When I use mysql_connect() and mysql_select_db() in PHP to connect to Amazon, is it coming from the dedicated IP address assigned to my account -and- is it using port 3306? If not, what setting should I be changing on Amazon or FQ?
Thanks in advance.
Using my local machine, I was able to set up a database instance on Amazon (which requires using a terminal with Java), and was then able to get Navicat to connect to the database in the same way that I am able to connect to MySQL on FQ. Now, I want to try using API calls via PHP so that my website scripts can interact with the database.
To use my local machine, I set Amazon to accept connections from my IP. In Navicat, I entered the User Name and Password as I normally would, and used the default port 3306.
Here are my questions: When I use mysql_connect() and mysql_select_db() in PHP to connect to Amazon, is it coming from the dedicated IP address assigned to my account -and- is it using port 3306? If not, what setting should I be changing on Amazon or FQ?
Thanks in advance.