facebook

MySql 5.1 database connection problem in myecilpse 7.1

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

    kiran20v
    Member

    MySql 5.1 database connection problem in myecilpse 7.1

    Database wizard :

    Driver template : MySql Connector/J
    Driver Name : mysqlDriver
    Connection URL : jdbc:mysql://hostname:3306/
    Driver Class Name : com.mysql.jdbc.Driver

    I hav selected “mysql-connector-java-5.1.7-bin.jar” after which Test Driver button is enabled.. after clicking on it, it is giving me a promt for password : mysql123, it is poping up an error message :

    “Error while performing database login with the mysqlDriver driver :
    communication link failure.

    Last packet sent to the server was 0 ms ago. ”

    Please let me know what is the problem. ??

    #296928 Reply

    rmcvay
    Member

    Connection URL : jdbc:mysql://hostname:3306/

    As I asked in your other post, is “hostname” correct and resolvable?

    #298486 Reply

    I’m having the same problem.
    I made two connections type:
    with localhost and the machine’s IP.
    In a linux console I’m using mysql -u root -p <databaseName> and works fine.
    I try the same thing on myeclipse and receives the same kiran’s error

    #298490 Reply

    support-joy
    Member

    Kiran/rodricci,
    Can you re-validate the host name and port? Make sure the host name and port are correct in the connection url.
    You can refer to the following post
    https://www.genuitec.com/forums/topic/mysql-5-1-database-connection-problem-in-myecilpse-7-1/&highlight=

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: MySql 5.1 database connection problem in myecilpse 7.1

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