ITPub博客

首页 > 数据库 > MySQL > ERROR 1045 (28000): using password: YES

ERROR 1045 (28000): using password: YES

原创 MySQL 作者:starive 时间:2014-10-31 09:33:16 0 删除 编辑
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

Case 1 


root@ubuntu:~# mysql -u root -p
Enter password: 
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
root@ubuntu:~# /usr/local/mysql/bin/mysqladmin -u root password 123      --》解决方案
root@ubuntu:~# mysql -u root -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.5.39-log Source distribution
Copyright (c) 2000, 2014, 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.01 sec)



来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26435490/viewspace-1315483/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2014-01-18

  • 博文量
    143
  • 访问量
    530075