Application Accessing MySQL remotely

Discussion in 'Java' started by Ike, Sep 12, 2003.

  1. Ike

    Ike Guest

    I am making a simple jdbc connection a MySQL. When I run it locally (WinXP),
    I connect no problem with

    jdbc:mysql://localhost:3306/selectr_test?user=root&password=root


    However, when I try to access remotely, as a java application, to a remote
    MySQL database on an Apache server under RedHat Linux:

    jdbc:mysql://www.select-right.com:3306/selectr_test?user=root&password=root

    It just keep timing out on me without makin the connection. Anyone...any
    ideas? Thanks, Ike
    Ike, Sep 12, 2003
    #1
    1. Advertising

  2. Ike,

    Mysql may not have bound to your external ip address, or it is not
    accepting requests from the outside. From the remote machine try:
    telnet www.select-right.com 3306
    Can telnet connect? If not, you may have to change the config in MySQL
    and/or your firewall settings.

    -Missaka

    Ike wrote:
    > I am making a simple jdbc connection a MySQL. When I run it locally (WinXP),
    > I connect no problem with
    >
    > jdbc:mysql://localhost:3306/selectr_test?user=root&password=root
    >
    >
    > However, when I try to access remotely, as a java application, to a remote
    > MySQL database on an Apache server under RedHat Linux:
    >
    > jdbc:mysql://www.select-right.com:3306/selectr_test?user=root&password=root
    >
    > It just keep timing out on me without makin the connection. Anyone...any
    > ideas? Thanks, Ike
    >
    >
    Missaka Wijekoon, Sep 12, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    342
  2. Replies:
    5
    Views:
    443
    Brandon Gano
    Jul 23, 2007
  3. mcl
    Replies:
    3
    Views:
    313
    Grant Edwards
    Nov 30, 2007
  4. helveticus

    Remotely accessing SQL server DB

    helveticus, May 2, 2008, in forum: ASP .Net
    Replies:
    8
    Views:
    474
    Paul Shapiro
    May 3, 2008
  5. dave
    Replies:
    4
    Views:
    1,355
    Steve Holden
    Nov 18, 2010
Loading...

Share This Page