MySQL Forums
Forum List  »  Install & Repo

Re: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
Posted by: Elric Mcaanaak
Date: March 03, 2008 05:49AM

Hello:

I have the same problem. If I try to connect using OS prompt with the command

mysql -hlocalhost -uroot -p'password'

where 'password' is a word which I use as root user's password, I connect to mysql without problems.

But If I made the same from a J Builder application the next error message is display:

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

I have checked this:

- Mysql server is 5.0
- My jconnector is Connector/J 3.1 and is supported by mysql 5.0.
- I have disactivated my panda firewall.
- The host,user and password is the same in the prompt and in the java application.

But The application can not connect to the database. Any ideas?.

It's my first work with mysql databases.

Options: ReplyQuote


Subject
Written By
Posted
June 27, 2009 08:29PM
December 16, 2007 02:18AM
December 27, 2007 02:08PM
January 16, 2011 06:51AM
Re: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
March 03, 2008 05:49AM
August 27, 2009 12:22AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.