远程无法连接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)相关推荐

  1. 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 ...

  2. Navicat连接远程mysql 1045 Access denied for user ‘root‘@‘localhost‘ (using password: YES)

    Navicat连接远程mysql 1045 Access denied for user 'root'@'localhost' (using password: YES)

  3. Mysql 1045 Access denied for user ‘root‘@‘localhost‘ (using password: YES/NO)个人解决方法 分享一下

    前言 Mysql 1045 Access denied for user 'root'@'localhost' (using password: YES/NO) 看了很多篇文章都没解决, 下面是我个人 ...

  4. 解决MySql 1045 Access denied for user ‘root‘@‘localhost‘ (using password: YES)

    最近遇到一个问题,就是后台连不上mysql数据库,用navicat打开数据库提示1045 Access denied for user 'root'@'localhost' (using passwo ...

  5. 解决mysql [1045] Access denied for user 'root'@'192.168.180.248' (using password: YES)

    在Linux服务器上安装了msyql数据库,MySQL默认安装完成后只有本地访问的权限,没有远程访问的权限,需要给指定用户设置访问权限才能远程访问该数据库,记录解决办法: cd *****/bin进入 ...

  6. Win7环境下mysql报错1045:Access denied for user root@localhost错误解决方法

    产生场景:在涉及到连接数据库操作的时候,会报1045:Access denied for user root@localhost. 比如:本地建立的数据库连接不上,在IDEA等开发工具中使用反向生成. ...

  7. mysql 报错1045 - Access denied for user “root” @ 192.111.111.11 (using password: YES)

    用navicat连接时会报: nodejs 会报这种错:TypeError Cannot read property "query " of undefined 看代码,很明显是数 ...

  8. mysql ERROR 1045 access denied for user 'root'@'localhost' using

    操作系统:WINDOWS7 系统 数据库版本:mysql 5.1 提示:mysql ERROR 1045   access denied for user 'root'@'localhost' usi ...

  9. 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 从网上找到的解决方法,以此博 ...

  10. MYSQL错误代码#1045 Access denied for user 'root'@'localhost'

    http://blog.csdn.net/lykezhan/article/details/70880845 遇到MYSQL"错误代码#1045 Access denied for user ...

最新文章

  1. .Net Core MVC初学习
  2. 收藏!深度学习计算机视觉模型解析!
  3. 腾讯大佬用了12小时讲完的Python,整整400集,拿走不谢!
  4. PS 1.x 中的寄存器
  5. 热点快评:德国强化AI战略,系统、技术等“多轮并行”
  6. C#重点知识详解(一) 选择自 masterall 的 Blog
  7. hp 交换机远程连接_光收发器怎么安装,光纤收发器连接示意图解
  8. 试用期没过,因在公司上了1024网站...
  9. 读者吐槽:Go 面试总被问到 RPC
  10. JsonUtils.java
  11. 剑英的区块链学习手记(一)
  12. [你必须知道的.NET]第二十四回:认识元数据和IL(上)
  13. 抑制过拟合的方法之权值衰减
  14. 项目管理工具dhtmlxGantt甘特图入门教程(八):数据加载(二)
  15. 网球爱好者小程序的设计与实现
  16. 目标检测入坑指南3:VGGNet神经网络
  17. 富兰克林的风筝:ReID产业化拉开的计算视觉新序幕
  18. 字符串的定义与赋值及初始化
  19. 什么是Nginx服务器
  20. 转 怎么回答“分布式架构”才能让面试官满意?

热门文章

  1. 南京铁道学院计算机应用,南京铁道职业技术学院铁道交通运营管理专业
  2. 命名问题导致的一个bug
  3. mac 电脑连接不上github_我电脑中的一些常用软件
  4. zookeeper的安装集群版
  5. 【重磅】关于本人CSDN的博客答疑
  6. 一文概述深度学习中的正则化(含Python代码)
  7. 前台传参到后台出现中文乱码问题
  8. Hadoop(十二)MapReduce概述
  9. CSS margin合并
  10. 作业六 栈的使用和界面编程探索