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

This Comment will be submitted for moderation and will not be accessible to other users until it has been approved.
Submitted by programmer on Thu, 08/14/2008 - 03:33.

Hi,

Installed MySQL a lot of times. The previous installs were successful until now:

[root@call mysql-community]# rpm -Uvh MySQL* --nodeps

warning: MySQL-bench-5.0.67-0.glibc23.x86_64.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5

Preparing... ########################################### [100%]

1:MySQL-shared-compat ########################################### [ 17%]

2:MySQL-bench ########################################### [ 33%]

3:MySQL-client ########################################### [ 50%]

4:MySQL-devel ########################################### [ 67%]

5:MySQL-server ########################################### [ 83%]

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !

To do so, start the server, then issue the following commands:

/usr/bin/mysqladmin -u root password 'new-password'

/usr/bin/mysqladmin -u root -h call.callboxinc.com password 'new-password'

Alternatively you can run:

/usr/bin/mysql_secure_installation

which will also give you the option of removing the test

databases and anonymous user created by default. This is

strongly recommended for production servers.

See the manual for more instructions.

Please report any problems with the /usr/bin/mysqlbug script!

The latest information about MySQL is available on the web at

http://www.mysql.com

Support MySQL by buying support/licenses at http://shop.mysql.com

Starting MySQL.[ OK ]

Thank you for installing the MySQL Community Server! For Production

systems, we recommend MySQL Enterprise, which contains enterprise-ready

software, intelligent advisory services, and full production support with

scheduled service packs and more. Visit www.mysql.com/enterprise for more

information.

6:MySQL-shared ########################################### [100%]

----> now when I try to run mysql

[root@call mysql-community]# mysql -u root

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

How Come?

Please Help.

Post Comment

  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.