当前位置:网站首页>idea配置连接远程数据库MySQL,或者是Navicat连接远程数据库失败问题(已解决)
idea配置连接远程数据库MySQL,或者是Navicat连接远程数据库失败问题(已解决)
2022-04-23 08:02:00 【爱看动漫的小龍】
在mysql环境下执行授权命令 (授权给远程任何电脑登录数据库):
流程如下:
- 看当前所有数据库:
show databases;
- 进入mysql数据库:
use mysql;
- 查看mysql数据库中所有的表:
update user set Host='%' where User='root';
- 查看user表中的数据:
select Host, User from user;
- 修改user表中的Host:
update user set Host='%' where User='root';
- 最后刷新一下:
flush privileges;
Navicat连接数据库两种方式:
先通过SSH连接到服务器,在连接服务器中的数据库。
也可以是直接一步到位:
不过这种方式需要设置服务器的防火墙打开也就是安全组,并且要对服务器的数据权限修改成所有主机用户都可以访问。
版权声明
本文为[爱看动漫的小龍]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_46644575/article/details/124340716
边栏推荐
- freertos学习02-队列 stream buffer message buffer
- Navicat远程连接mysql
- 分布式消息中间件框架选型-数字化架构设计(7)
- [explanation] get ora-12838: cannot read / modify an object after modifying it in parallel
- Knowledge points and problem solutions related to information collection
- Redis master-slave server problem
- 英语课小记(四)
- How to encrypt devices under the interconnection of all things
- 一键清理项目下pycharm和Jupyter缓存文件
- 项目上传部分
猜你喜欢
总线结构概述
Shell脚本进阶
一键清理项目下pycharm和Jupyter缓存文件
My heart's broken! A woman's circle of friends envied others for paying wages on time and was fired. Even her colleagues who liked her were fired together
信息收集相关知识点及题解
Qt利用QtXlsx操作excel文件
stm32以及freertos 堆栈解析
[explanation] get ora-12838: cannot read / modify an object after modifying it in parallel
[C语言] 文件操作《一》
Excle plus watermark
随机推荐
记录:js删除数组中某一项或几项的几种方法
Install MySQL for Ubuntu and query the average score
项目上传部分
万物互联下如何对设备进行加密
跨域配置报错: When allowCredentials is true, allowedOrigins cannot contain the special value “*“
An article understands variable lifting
线程的调度(优先级)
Let the earth have less "carbon" and rest on the road
vmware 搭建ES8的常见错误
通过实现参数解析器HandlerMethodArgumentResolver接口来自定义注解
The third divisor of leetcode simple question
396. Rotate Function
form表单 post提交 数据量大的问题
[C语言] 文件操作《一》
excle加水印
Qt利用QtXlsx操作excel文件
LeetCode简单题之计算字符串的数字和
DOM学习笔记---遍历页面所有元素节点
My heart's broken! A woman's circle of friends envied others for paying wages on time and was fired. Even her colleagues who liked her were fired together
总线结构概述