第一次使用IP登录MySQL时会出现的问题

问题过程:
:~$mysql -h xxx.xxx.xxx.xxx -u root -p
Enter password:
ERROE 1045 (28000): Access denied for user ‘root’@’xxx.xxx.xxx.xxx’ (using password: YES)

原因:
没有对其进行授权

解决方法:
1.用localhost登录
:~$mysql -u root -p
Enter password:
2.授权
mysql> grant all privileges on . to root@’%’ identified by ‘123’;
Query OK, 0 rows affected (0.34 sec)
3.退出
mysql> quit
Bye
4.用IP登录
:~$ mysql -h xxx.xxx.xxx.xxx -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 112787
Server version: 5.5.54-0ubuntu0.12.04.1 (Ubuntu)

Copyright (c) 2000, 2017, 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.

解决问题

MySQL登录时出现的Access denied for user 'root'@'xxx.xxx.xxx.xxx' (using password: YES) 的解决办法相关推荐

  1. l连接mysql数据库时报错(1045, Access denied for user 'root'@'127.0.0.1 (using password: YES))

    具体内容:Traceback (most recent call last): File "E:/python_events/ch01/mysqldb_test.py", line ...

  2. 转: windows系统下mysql出现Error 1045(28000) Access Denied for user 'root'@'localhost'

    windows系统下mysql出现Error 1045(28000) Access Denied for user 'root'@'localhost' 转自 http://zxy5241.space ...

  3. 访问远程数据库时,产生Access denied for user ‘root‘@‘xxx.xxx.xxx.xxx‘ (using password: YES)异常的解决办法

    一. 异常现象 我编写了一个SpringBoot项目,项目中连接的数据库服务器地址是192.168.87.107,然后打包生成了对应的jar包,上传到192.168.87.109这个Linux服务器中 ...

  4. Ubuntu安装MySQL Access denied for user 'root'@'192.168.1.148' (using password: YES)

    Ubuntu版本16.0.4 Ubuntu安装比较简单,只需要三条命令 1.sudo apt-get install mysql-server 提示继续执行输入Y 等待提示设置密码,此密码是以后登录数 ...

  5. 解决方法之报错:java.sql.SQLException: Access denied for user ‘root‘@‘192.168.100.1‘ (using password: YES)

    在用Eclipse链接虚拟机里的mysql时出现了下面这个bug: java.sql.SQLException: Access denied for user 'root'@'192.168.100. ...

  6. Centos7解决MySQL登录ERROR 1045 (28000): Access denied for user ‘‘@‘localhost‘ (using

    ​小知识,大挑战!本文正在参与"程序员必备小知识"创作活动. 登录数据库时,发现数据库连接不上,报错如下: ERROR 1045 (28000): Access denied fo ...

  7. mysql更改数据库登录密码失败;Access denied for user 'root'@'localhost;mysqladmin: connect to server at 'localhos

    信了如下几个报错的邪 mysqladmin更改密码无效 "Access denied for user 'root'@'localhost'" "mysqladmin: ...

  8. windows 下 安装mysql 出现 “ ERROR 1045 (28000): Access denied for user ‘root’@‘localhost’ (using password

    这个问题是在Windows下安装MySQL服务时遇到的,使用MySQl绿色版进行安装的,安装完成后,连接到MySQL服务时输入命令 " mysql -uroot -p " ,因为时 ...

  9. MySQL错误ERROR 1045 (28000): Access denied for user 'root'@'localhos

    转载出处玮璘博客:http://www.wangweilin.name/rj_446.html 错误描述: Mysql中添加用户之后可能出现登录时提示ERROR 1045 (28000): Acces ...

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

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

最新文章

  1. 分布式架构的对比-EMC VMAX
  2. 2021年USNews美国研究生院排名重磅出炉!!!
  3. mysql 执行计划大于_Mysql执行计划(大章)
  4. tomcat 显示访问的ip白名单
  5. easyui表单网格列错位_《HTML5从入门到精通》——第3章 HTML表格与表单
  6. 联合检测和跟踪的MOT算法解析(含MOT17 No.1等多个榜前算法)
  7. spring项目搭建-注册对象到容器测试
  8. 20201221:力扣220场周赛题解
  9. 英特尔:5G将释放云的潜力,为垂直行业带来巨大商机
  10. AI安全 - 华为白皮书《AI Security White Paper》
  11. 深度强化学习(深度Q学习
  12. SQLEXPRESS的连接字符串
  13. rs232接口_串口,COM口,TTL,RS232,RS485,UART的区别详解
  14. Linux驱动的地址空间和硬件地址空间说明——摘自华清远见嵌入式园地 .
  15. 同步机制应遵循的规则
  16. OpenCV Python 人脸识别签到系统(超详细注释)
  17. 解决:Error: geom_point requires the following missing aesthetics: y Run `rlang::last_error()`
  18. Linux Socket编程(不限Linux)基本函数用法
  19. 【Todo】【转载】深度学习神经网络 科普及八卦 学习笔记 GPU SIMD
  20. SDUT OJ 2977

热门文章

  1. SaaS到底是什么东西
  2. rds是什么云模式_IaaS、PaaS、SaaS、DaaS都是什么?
  3. FoxMail上配置163邮箱的方法
  4. 一步真实解决RuntimeError: result type Float can‘t be cast to the desired output type long int
  5. python打开xlsm_关于python:如何使用openpyxl使用Macro保存XLSM文件
  6. 严蔚敏《数据结构》 迪杰斯特拉算法
  7. 音视频基础知识|ANS 噪声抑制原理解析
  8. GAN——生成对抗网络详解
  9. Python jiba 分词
  10. kali linux暴力破解攻击