facebook

MySql 5.1 database connection problem in myecilpse 7.1

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #296920 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. ??

    #296922 Reply

    Paolo Denti
    Member

    @kiran20v wrote:

    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. ??

    sure that the mysql server is on ? did you try to connect to mysql manually ?

    #296925 Reply

    herveJ
    Member

    I have the same problem , with the Connection URL : jdbc:mysql://localhost

    try to change hostname by localhost

    #296926 Reply

    rmcvay
    Member

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

    First are you sure “hostname” is correct and resolvable from your PC?

    #296932 Reply

    kiran20v
    Member

    Yep

    MySql is On and functional.
    Connection URL : jdbc:mysql://hostname:3306/ is working fine on some systems.
    I have tried with ‘localhost’ and ‘hostname’ too. same thing continues.

    Kiran

    #296946 Reply

    support-joy
    Member

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

    Use this instead –
    Driver template : MySql Connector/J
    Driver Name : mysqlDriver
    Connection URL : jdbc:mysql://localhost:3306/ (or) jdbc:mysql://localhost:3306/test (or) jdbc:mysql:///test
    Driver Class Name : com.mysql.jdbc.Driver

    Replace “hostname” in the Connection URL, with either “localhost” or “Name(your SystemName)”.

    #296969 Reply

    kiran20v
    Member

    Connection URL : jdbc:mysql://localhost:3306/ (or) jdbc:mysql://localhost:3306/test (or) jdbc:mysql:///test

    Replace “hostname” in the Connection URL, with either “localhost” or “Name(your SystemName)”.

    I have tried all of these :
    jdbc:mysql://localhost:3306/test, jdbc:mysql://localhost:3306/, jdbc:mysql:///test .
    The follwing error message is coming up :

    ” Error while performing database login with mysqlDriver driver :
    Access denied for the user “@’localhost’ (Using password :YES)

    kiran

    #296976 Reply

    rmcvay
    Member

    The error message seems indicate the connection was made but the db server didn’t like the user name or password.

    #297004 Reply

    kiran20v
    Member

    Im able to connect with MYSQL server with the same password through the command prompt, but unable to connect through db browser in myeclipse7.1.

    Kiran

    #297011 Reply

    support-joy
    Member

    ” Error while performing database login with mysqlDriver driver :
    Access denied for the user “@’localhost’ (Using password :YES)

    Can you click on Window > Show/View > Problems and copy and paste the error. Also you can look into your log file located under [MyEclipse installation folder]\.metadata\.log for the appropriate error.

    #297013 Reply

    Brian Fernandes
    Moderator

    Kiran,

    As Ray pointed out above, your database is up and running and MyEclipse does get to it, but the connection is refused. From Joy’s earlier message, please use

    jdbc:mysql://localhost:3306 
    or 
    jdbc:mysql://localhost:3306/test

    as a connection string, the latter is preferred, where “test” is the name of a database that should exist.

    From the error message

    Access denied for user ”@’localhost’ (using password: YES)

    it appears that you have not specified a username. Have you specified a username in the “User name” field of the driver? If this is the root account then specifying

    root

    as the username should work. If this is not the root account, please make sure you specify the correct username.

    #297031 Reply

    kiran20v
    Member

    Hey user name : ‘root’ and URL : jdbc:mysql://localhost:3306/test ,worked perfectly. Any other defualt users in mysql db??
    Thanks a ton.

    ————————–
    Regards
    Kiran

Viewing 12 posts - 1 through 12 (of 12 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