mysqldump: Got error: 1045: Access denied for user 'roor'@'localhost' (using pas sword: YES) when tr

1、错误描述

C:\Users\Administrator>d:

D:\>cd MySQL\Program Files\MySQL\MySQL Server 5.6\bin

D:\MySQL\Program Files\MySQL\MySQL Server 5.6\bin>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:\MySQL\Program Files\MySQL\MySQL Server 5.6\bin>

2、错误原因

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

3、解决办法

修改root账号密码

(1)选中mysql

use mysql;

(2)修改root密码

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

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

版权声明:本文为博主原创文章,未经博主允许不得转载。

mysqldump: Got error: 1045: Access denied for user 'roor'@'localhost' (using pas sword: YES) when tr

时间: 2024-12-17 05:20:27

mysqldump: Got error: 1045: Access denied for user 'roor'@'localhost' (using pas sword: YES) when tr的相关文章

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

1.错误描述 C:\Users\Administrator>d: D:\>cd MySQL\Program Files\MySQL\MySQL Server 5.6\bin D:\MySQL\Program Files\MySQL\MySQL Server 5.6\bin>mysqldump --all-databases -uro or -p > all.sql Enter password: ************** mysqldump: Got error: 1045:

Django syncdb mysql error on localhost -> (1045, "Access denied for user 'ODBC'@'localhost')

环境:WINDOWS系统 将数据库配置 DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'HOST': 'localhost', 'PORT': 3306, 'NAME': 'yunwei', 'USERNAME': 'root', 'PASSWORD': 'mysql', } } 改为 DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql',

error nr.1045 access denied for user 'root'@'localhost' (using passwd:no)

在windows上卸载了mysql,再次重新安装的时候运行失败,并报以下错误: 解决办法: 1.服务里面停止Mysql服务. 2.卸载Mysql,删除MySQL的安装目录. 3.此外还要删除以下目录的mysql相关文件 4.删除注册表里的HEKY_LOCAL_MACHINE相关目录 HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Eventlog\Application\MySQL 目录 HKEY_LOCAL_MACHINE\SYSTEM\Con

mysqldump: Got error: 1044: Access denied for user 'backupuser'@'%' to database 'upmngr' when using LOCK TABLES

在进行Mysql备份的时候: sudo /usr/bin/mysqldump -ubackupuser -pdbpassword --database upmngr >/tmp/`date '+%Y%m%d%H%M%S'`.log 出现下面的错误提示: Warning: Using unique option prefix database instead of databases is deprecated and will be removed in a future release. Pl

windows mysql提示:1045 access denied for user 'root'@'localhost' using password yes 解决方案

简单粗暴 工具xwamp 路径:H:\xampp\mysql\bin\my.ini.php 打开my.ini,在[mysqld]下面添加 skip-external-lockingskip-name-resolveskip-grant-tables 停止mysql ->打开xwamp的shell可以输入命令,如下 Setting environment for using XAMPP for Windows. [email protected]-CGL9PRT h:\xampp # mysql

linux(ubuntu) 1045, "Access denied for user 'root'@'localhost' (using password: YES)"

问题现象: 最近使用 flask 的 sqlalchemy 框架,在链接数据库(mysql)时出现报错 sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (1045, "Access denied for user 'root'@'localhost' (using password: YES)") (Background on this error at: http://sqlalche.me/e/e3q8

Mysql相关问题-----1045 Access denied for user 'root'@'localhost' (using password: YES)报错

MySQL 连接错误,使用Navicat连接MySQL出现错误:1045 Access denied for user 'root'@'localhost' (using password: YES) 解决方案: 1.编辑mysql配置文件my.ini 在mysql的安装目录下 ,在[mysqld]这个条目下加入 skip-grant-tables 保存退出后重启mysql [mysqld] #作用是跳过登录的验证 #skip-grant-tables port = 3306 basedir=C

#1045 - Access denied for user 'root'@'localhost' (using password: NO)

如上所示,当我们修改数据库的密码之后,再次进入phpmyadmin的时候,就会产生这种错误#1045 - Access denied for user 'root'@'localhost' (using password: NO) .那这种错误产生的原因是什么呢?解释就是,密码修改后,新旧密码不一致产生的.改正过来其实也很简单,在phpmyadmin3.4.10.1文件夹下找到config.inc.php这个文件,然后找到里面$cfg['Servers'][$i]['password'] = '

Navicat安装后出现错误:1045 - Access denied for user 'root'@'localhost' (using password: YES)

安装完MySQL和N之后,打开Navicat后出现如下错误: **********1045 - Access denied for user 'root'@'localhost' (using password: YES)********** (小插曲:记得不知道这是多少次安装MySQL了,以前用的是SQLyog,突然安装了一个Navicat,尽然出现错误,让自己小小的汗颜了一把!!!经过上网查资料,解决方法陈述下文) [问题所在]:未给root用户分配所有权限. [解决步骤]:例如:用户名:a