facebook

Error while trying to login to database

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

    maheshbolla
    Member

    I am working on MyEclipse and Hibernate examples. I have mysql database installed on my machine. database name is test and user name is mysql/msql.
    In DB Exploer i have configured a DB connection as follows
    Dirvier : MySQL Connector/J
    URL : jdbc:mysql://localhost/test
    User name :msql

    When I try to connect to this database I am getting the below error.

    !MESSAGE Error while trying to login to database
    !STACK 0
    java.sql.SQLException: Access denied for user ‘mysql’@’localhost’ (using password: YES)
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2928)
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:771)
    at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3649)
    at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1176)

    Please let me know if u have any idea.

    #278931 Reply

    Loyal Water
    Member

    Are you sure the user name is msql and NOT root ?

    The default username is root and password is admin.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Error while trying to login to database

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