Error 1045 (28000): Access denied for user 'root @ localhost' @ 'localhost' Solution

Source: Internet
Author: User

Error 1045 (28000): Access denied for user 'root @ localhost' @ 'localhost' Solution
----
Blog, http://blog.csdn.net/shunqiziranhao007/article/details/8566783
Date, January 1, February 3, 2013
----
$ Mysql-u root @ localhost-P
Enter password:
Error 1045 (28000): Access denied for user 'root @ localhost' @ 'localhost' (using password: Yes)
$ Mysql-H localhost-u root-P
Enter password:
Welcome to the MySQL monitor. commands end with; or \ G.
Your MySQL connection ID is 50
Server version: 5.5.29-0ubuntu0. 12.04.1 (UBUNTU)

Copyright (c) 2000,201 2, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
Affiliates. Other names may be trademarks of their respective
Owners.

Type 'help; 'or' \ H' for help. type' \ C' to clear the current input statement.

Mysql> show databases;
+ -------------------- +
| Database |
+ -------------------- +
| Information_schema |
| MySQL |
| Performance_schema |
| Test |
+ -------------------- +
4 rows in SET (0.00 Sec)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.