Skip to main content
Participant
May 29, 2008
Question

Connecting to a remote database

  • May 29, 2008
  • 3 replies
  • 582 views
Ok so I am really a newbie when it comes to CF. I know how to add DSNs in the CF admin locally. The problem I am having is connecting to a database on a different server. I know I have the correct IP address, so the problem has to be the port. Using the default port will not work I assume, so my question is how would I be able to find the right port number to connect to my database?
This topic has been closed for replies.

3 replies

Participating Frequently
May 30, 2008
I'd first verify that the MySQL users were created correctly and have proper permissions to access from the specific host.
Then I'd take ColdFusion out of the picture. You could try using the MySQL client on the server that has ColdFusion and try logging in.
My bet is that this is not a ColdFusion problem.
Participating Frequently
May 30, 2008
If you are administering MySQL (I'm assuming that you are using MySQL), then quite honestly you should know what port it is using. If it's a vanilla installation, then I can't imagine that it's not using port 3306. You probably have a user issue. Remember that MySQL users can be dependent on the host name. Just because you can logon from the same machine that MySQL is running on, does not mean that the same user will work from a different physical machine.
ManolobAuthor
Participant
May 30, 2008
I know the server that is running the MySql database is running on port 3306. The other server that is running coldfusion can't log into the database at all. The connection times out, so what can I do to remedy this? I tried three different users and nothing works.
Inspiring
May 29, 2008
Manolob wrote:
> Ok so I am really a newbie when it comes to CF. I know how to add DSNs in the
> CF admin locally. The problem I am having is connecting to a database on a
> different server. I know I have the correct IP address, so the problem has to
> be the port. Using the default port will not work I assume, so my question is
> how would I be able to find the right port number to connect to my database?
>


A Database Administer of the remote database tells you.

ManolobAuthor
Participant
May 30, 2008
what if you had access to administer the database where would I find the info for another port besides 3306?