facebook

Unable to connect,any db using MyEclipse Database explorer

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #291458 Reply

    Hi,

    I have downloaded MyEclipse 6.6.I am trying to connect to oracle database through MyEclipse Database explorer.But i am not able to connect.I am getting the below exception.

    IOException:The network adapter could not establish the connection.

    And also when I try to connect to MyEclipse Derby database,I am getting the below exception:

    java.net.SocketException: Error connecting to server localhost on port 1527 with message permission denied:connect

    Note:I am connect to oracle database,through SQL Command prompt.I am using windows vista OS.

    Any help will be greatly appreciated.[/img]

    #291469 Reply

    rmcvay
    Member

    Could Vista’s firewall be blocking the Java running ME?

    #291470 Reply

    rmcvay
    Member

    Also, the Oracle is running on your Vista PC, too, right?

    #291538 Reply

    Thanks a lot for your response .

    yes,Oracle is running on my PS on OS,windows vista.

    What i suspect is vista’s firewall might be blocking the things.Could you send me on how to overcome this..

    #291607 Reply

    Today,I tried to run the below standalone application from MyEclipse(trying to connect MYSql database)

    import java.sql.Connection;
    import java.sql.DriverManager;

    public class Testmysql {

    public static void main(String[] args)throws Exception {

    Class.forName(“com.mysql.jdbc.Driver”);
    Connection conn=DriverManager.getConnection(“jdbc:mysql://localhost/test”, “root”, “admin”);
    System.out.println(conn);
    }
    }

    I got the below exception:

    Exception in thread “main” com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:

    ** BEGIN NESTED EXCEPTION **

    java.net.SocketException
    MESSAGE: java.net.SocketException: Permission denied: connect

    STACKTRACE:

    java.net.SocketException: java.net.SocketException: Permission denied: connect
    at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:150)
    at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:270)
    at com.mysql.jdbc.Connection.createNewIO(Connection.java:2635)
    at com.mysql.jdbc.Connection.<init>(Connection.java:1525)
    at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:260)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at tetemy.main(tetemy.java:14)

    ** END NESTED EXCEPTION **

    .

    The same proggrame i tried to run from command prompt,then i am able to run the proggram successfully,in this case i am able to print the connection object

    I am using Windows vista(Operating System).Please guide me on how to overcome this problem.I am facing this problem from months.

    Any help will be greatly appreciated.

    #304890 Reply

    revanthg
    Member

    This message has not been recovered.

    #304915 Reply

    This message has not been recovered.

    #305828 Reply

    vishwaroop
    Member

    This message has not been recovered.

    #305851 Reply

    This message has not been recovered.

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: Unable to connect,any db using MyEclipse Database explorer

You must be logged in to post in the forum log in