mysql 1045 - Access denied for user 'root'@'*.*.*.*' (using password YES)
远程无法连接mysql
解决方法:
1、在服务器登录数据
mysql -uroot -hlocalhost -P3306 -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 12 Server version: 5.6.39 MySQL Community Server (GPL)Copyright (c) 2000, 2018, 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.
2、选择mysql数据库
mysql> use mysql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
3、更新root密码
mysql> UPDATE user SET Password=PASSWORD('newpassword') where USER='root'; Query OK, 4 rows affected (0.01 sec) Rows matched: 5 Changed: 4 Warnings: 0
4、刷新权限
mysql> FLUSH PRIVILEGES; Query OK, 0 rows affected (0.00 sec)
转载于:https://www.cnblogs.com/sandyyeh/p/8437034.html
mysql 1045 - Access denied for user 'root'@'*.*.*.*' (using password YES)相关推荐
- MYSQL 1045 - Access denied for user ‘root‘@‘localhost‘ (using password: YES)
MYSQL 1045 - Access denied for user 'root'@'localhost' (using password: YES) 1.停止mysql服务 cmd打开终端 net ...
- Navicat连接远程mysql 1045 Access denied for user ‘root‘@‘localhost‘ (using password: YES)
Navicat连接远程mysql 1045 Access denied for user 'root'@'localhost' (using password: YES)
- Mysql 1045 Access denied for user ‘root‘@‘localhost‘ (using password: YES/NO)个人解决方法 分享一下
前言 Mysql 1045 Access denied for user 'root'@'localhost' (using password: YES/NO) 看了很多篇文章都没解决, 下面是我个人 ...
- 解决MySql 1045 Access denied for user ‘root‘@‘localhost‘ (using password: YES)
最近遇到一个问题,就是后台连不上mysql数据库,用navicat打开数据库提示1045 Access denied for user 'root'@'localhost' (using passwo ...
- 解决mysql [1045] Access denied for user 'root'@'192.168.180.248' (using password: YES)
在Linux服务器上安装了msyql数据库,MySQL默认安装完成后只有本地访问的权限,没有远程访问的权限,需要给指定用户设置访问权限才能远程访问该数据库,记录解决办法: cd *****/bin进入 ...
- Win7环境下mysql报错1045:Access denied for user root@localhost错误解决方法
产生场景:在涉及到连接数据库操作的时候,会报1045:Access denied for user root@localhost. 比如:本地建立的数据库连接不上,在IDEA等开发工具中使用反向生成. ...
- mysql 报错1045 - Access denied for user “root” @ 192.111.111.11 (using password: YES)
用navicat连接时会报: nodejs 会报这种错:TypeError Cannot read property "query " of undefined 看代码,很明显是数 ...
- mysql ERROR 1045 access denied for user 'root'@'localhost' using
操作系统:WINDOWS7 系统 数据库版本:mysql 5.1 提示:mysql ERROR 1045 access denied for user 'root'@'localhost' usi ...
- windows mysql提示:1045 access denied for user 'root'@'localhost' using password yes 解决方案
win7 MySql5.6.17 提示:1045 access denied for user 'root'@'localhost' using password yes 从网上找到的解决方法,以此博 ...
- MYSQL错误代码#1045 Access denied for user 'root'@'localhost'
http://blog.csdn.net/lykezhan/article/details/70880845 遇到MYSQL"错误代码#1045 Access denied for user ...
最新文章
- .Net Core MVC初学习
- 收藏!深度学习计算机视觉模型解析!
- 腾讯大佬用了12小时讲完的Python,整整400集,拿走不谢!
- PS 1.x 中的寄存器
- 热点快评:德国强化AI战略,系统、技术等“多轮并行”
- C#重点知识详解(一) 选择自 masterall 的 Blog
- hp 交换机远程连接_光收发器怎么安装,光纤收发器连接示意图解
- 试用期没过,因在公司上了1024网站...
- 读者吐槽:Go 面试总被问到 RPC
- JsonUtils.java
- 剑英的区块链学习手记(一)
- [你必须知道的.NET]第二十四回:认识元数据和IL(上)
- 抑制过拟合的方法之权值衰减
- 项目管理工具dhtmlxGantt甘特图入门教程(八):数据加载(二)
- 网球爱好者小程序的设计与实现
- 目标检测入坑指南3:VGGNet神经网络
- 富兰克林的风筝:ReID产业化拉开的计算视觉新序幕
- 字符串的定义与赋值及初始化
- 什么是Nginx服务器
- 转 怎么回答“分布式架构”才能让面试官满意?