【转载】在MySQL登录时出现Access denied for user 'root'@'localhost' (using password: YES) 拒绝访问,并可修改MySQL密码...
在MySQL登录时出现Access denied for user 'root'@'localhost' (using password: YES) 拒绝访问,并可修改MySQL密码
对于出现拒绝访问root用户的解决方案
错误1045(28000):用户'root'@'localhost'(使用密码:YES)拒绝访问
首先解析此英文:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES);解析的地方有两处:①Access denied(拒绝访问);②using password:NO/YES
一、出现access denied的原因有如下可能:
1)mysql的服务器停止
2)用户的端口号或者IP导致
3)mysql的配置文件错误----my.ini等文件
4)root用户的密码错误
- 若MySQL已经没有启动,重启MySQL服务器:net start mysql
- 若用户的端口号与IP(3306/3307)不一致,打开my.ini文件进行编辑。全部编辑替换为: port=X
- my.ini文件误输入无效内容,不知道到何处。复制替换该文件;有人已经对my.ini文件进行解释以及注释(非博主的文章)https://blog.csdn.net/lienfeng6/article/details/78140404
- root用户密码错误,本博客主要内容【解决方案】
二、出现 using password的原因如下是:
- 不键入密码:
- 错误的密码:
解决方案:
到安装的MySQL的目录下,找my.ini文件;
在[mysqld]后添加skip-grant-tables(使用 set password for设置密码无效,且此后登录无需键入密码)
skip-grant-tables #在my.ini,[mysqld]下添加一行,使其登录时跳过权限检查
尽量少操作
重启MySQL服务器。
登录mysql,键入mysql –uroot –p;直接回车(Enter)
键入无效set password for ‘root’@‘localhost’=password(‘123456’);
在my.ini文件添加从此后无需键入密码
再把my.ini的skip-grant-tables删除,然后重启MySQL服务器:net stop mysql ;net start mysql;
再次进行设置密码:set password for ‘root’@‘localhost’=password(‘123456’);
设置密码成功。。。
skip-name-resolv #禁止MySQL对外部连接进行DNS解析,使用这一选项可以消除MySQL进行DNS解析的时候。但是需要注意的是,如果开启该选项,则所有远程主机连接授权都要使用IP地址方式了,否则MySQL将无法正常处理连接请求
转载于:https://www.cnblogs.com/xuanbjut/p/10406980.html
【转载】在MySQL登录时出现Access denied for user 'root'@'localhost' (using password: YES) 拒绝访问,并可修改MySQL密码...相关推荐
- 在MySQL登录时出现Access denied for user ‘root‘@‘localhost‘ (using password: YES) 拒绝访问,并可修改MySQL密码
MYSQL解决密码键入错误 适用于windows安装MySQL 对于出现拒绝访问root用户的解决方案 错误1045(28000):用户'root'@'localhost'(使用密码:YES)拒绝访问 ...
- 在MySQL登录时出现Access denied for user ‘root‘@‘localhost‘ (using password: YES)
在MySQL登录时出现Access denied for user 'root'@'localhost' (using password: YES) 视频:https://edu.csdn.net/c ...
- Mysql登录时出现Access denied for user ‘root‘@‘localhost‘ (using password YES)无法打开的解决方法
MySQL登录时出现Access denied for user 'root'@'localhost' (using password: YES)无法打开的解决方法 本人配置:系统64位win10,M ...
- MySQL登录时出现Access denied for user ‘root‘@‘localhost‘ (using password: YES)
MySQL登录时出现Access denied for user 'root'@'localhost' (using password: YES) 今天下午数据库实验课上设置一个新用户并允许其访问权限 ...
- Windows~~~在MySQL登录时出现Access denied for user ‘root‘@‘localhost‘ (using password: YES) ,并修改MySQL密码
目录 适用于windows安装MySQL 对于出现拒绝访问root用户的解决方案 解决方案: 重启MySQL服务器. 以上仍然不行的话 1.卸载计算机上所有与MYSQL相关应用程序 2.删除MYSQL ...
- mysql登录报错“Access denied for user ‘root‘@‘localhost‘ (using password: YES”的处理方法
解决:Access denied for user ''@'localhost' (using password: YES) - 程序员大本营 找了一晚上,但是不知道为什么使这样.
- 新安装的mysql登陆时出现Access denied for user ‘root‘@‘localhost‘ (using password: NO)
这是mysql自己创建了一个密码,可以在 /var/log/mysqld.log 文件中找到初始密码 如果在输入密码前你已经尝试过其它操作,请先还原设置(比如在某文件下添加skip-grant-tab ...
- MySQL登录时出现 Access denied for user 'root'@'xxx.xxx.xxx.xxx' (using password: YES) 的原因及解决办法
MySQL登录时出现 Access denied for user 'root'@'xxx.xxx.xxx.xxx' (using password: YES) 的原因及解决办法. # mysql - ...
- 连接mysql报错:Access denied for user ‘root’@‘localhost’(using password: YES)的解决方法
连接mysql报错:Access denied for user 'root'@'localhost'(using password: YES)的解决方法 参考文章: (1)连接mysql报错:Acc ...
- MYSQL问题解决方案:Access denied for user ‘root‘@‘localhost‘ (using password:YES)
MYSQL问题解决方案:Access denied for user 'root'@'localhost' (using password:YES) 参考文章: (1)MYSQL问题解决方案:Acce ...
最新文章
- jQuery插件开发(一):jQuery类方法
- 面试:GET和POST两种基本请求方法有什么区别
- linux文件名通配符:* ? [:digit:]数字 [:lower:]小写字母 [:upper:]大写字母
- 返回1到n的所有组合python_如何在Python中生成0-1矩阵的所有可能组合?
- 【pmcaff】事件营销口碑传播疯传的秘诀在哪里?
- 小米手环五怎么和微信连接不上服务器,小米手环怎么连接手机微信
- 计算机等级的有关知识,计算机等级二级基础知识.doc
- 2022中国私域流量管理研究报告
- 华为云设计语言_华为又一项黑科技即将来临:可即时翻译任何动物语言
- 数论 —— 整数分解
- shiro密码正确也会匹配错误_智能商贸-Shiro
- linux怎么显示目录层次结构,Linux基础(层级结构、基础命令)
- 小程序的出现留给APP的时间还会久吗?
- linux下maxwell安装教程,Ubuntu下若干软件的安装方法
- CANOe系列讲解 - CANoe发送UDS诊断帧
- unicloud进阶uni-id入门(一)---uni-id能做什么?
- 你参加了无数 “打卡” 群,为什么收获甚微。。。
- 解决锚点定位刷新页面的问题
- 内网环境下,RSS新玩法——老树能否发新芽
- Flash Loader Demonstrator无响应怎么办?