mysqldump Got error 1045 Access denied for user 'roor' 'l

Posted odejsjhshw

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysqldump Got error 1045 Access denied for user 'roor' 'l相关的知识,希望对你有一定的参考价值。

1、错误描述

 

C:UsersAdministrator>d:

D:>cd mysqlProgram FilesMySQLMySQL Server 5.6in

D:MySQLProgram FilesMySQLMySQL Server 5.6in>mysqldump --all-databases -uro
or -p > all.sql
Enter password: **************
mysqldump: Got error: 1045: Access denied for user ‘roor‘@‘localhost‘ (using pas
sword: YES) when trying to connect

D:MySQLProgram FilesMySQLMySQL Server 5.6in>

2、错误原因

    由报错的解释可知,以root账号登录mysql,但是被拒绝。

 

3、解决办法

      修改root账号密码

(1)选中mysql

         use mysql;

(2)修改root密码

       update user set password=‘root‘ where user = ‘root‘;

(3)刷新数据库,重启服务

再分享一下我老师大神的人工智能教程吧。零基础!通俗易懂!风趣幽默!还带黄段子!希望你也加入到我们人工智能的队伍中来!https://blog.csdn.net/jiangjunshow


以上是关于mysqldump Got error 1045 Access denied for user 'roor' 'l的主要内容,如果未能解决你的问题,请参考以下文章

mysqldump: Got error: 1102: Incorrect database nam

mysqldump Got error 1045 Access denied for user 'roor' 'l

(转)mysqldump: Got error: 1556: You can't use locks with log tables.

mysqldump: Got error: 1044: Access denied for user 'backupuser'@'%' to database '

mysqldump: Got error: 1449: The user specified as a definer ('user'@'%') does not ex

mysqldump: Got error: 1556: You can't use locks with log tables. when using LOCK TABLES