现在的位置: 首页 > 综合 > 正文

ERROR 1045 (28000): Access denied for user ‘root@localhost’@'localhost’的解决方法

2013年09月08日 ⁄ 综合 ⁄ 共 883字 ⁄ 字号 评论关闭

ERROR 1045 (28000): Access denied for user 'root@localhost'@'localhost'的解决方法
————
博客,http://blog.csdn.net/shunqiziranhao007/article/details/8566783
日期,2013年2月3日
————
$ 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, 2012, 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)

抱歉!评论已关闭.