当前位置:网站首页>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
边栏推荐
- 2022.4.11-4.17 AI行业周刊(第93期):AI行业的困局
- 一键清理项目下pycharm和Jupyter缓存文件
- excle加水印
- CGM优化血糖监测管理——移宇科技亮相四川省国际医学交流促进会
- 2022.4.11-4.17 AI industry weekly (issue 93): the dilemma of AI industry
- CSV column extract column extraction
- 输入/输出系统
- Qtablewidget header customization and beautification developed by pyqt5 (with source code download)
- 396. Rotate Function
- 5.6 comprehensive case - RTU-
猜你喜欢

Green apple film and television system source code film and television aggregation film and television navigation film and television on demand website source code

ansible自動化運維詳解(一)ansible的安裝部署、參數使用、清單管理、配置文件參數及用戶級ansible操作環境構建

作文以记之 ~ 二叉树的后序遍历

信息收集相关知识点及题解

WordPress love navigation theme 1.1.3 simple atmosphere website navigation source code website navigation source code

RPC procedure

Failed to convert a NumPy array to a Tensor(Unsupported Object type int)

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

数据可视化:使用Excel制作雷达图

freertos学习02-队列 stream buffer message buffer
随机推荐
Listed on the Shenzhen Stock Exchange: the market value is 5.2 billion yuan. Lu is the East and his daughter is American
Common regular expressions
How browser works
输入/输出系统
How to read books and papers
Qtablewidget header customization and beautification developed by pyqt5 (with source code download)
The annotation is self-defined by implementing the parameter parser handlermethodargumentresolver interface
一个必看的微信小程序开发指南1-基础知识了解
form表单 post提交 数据量大的问题
Overview of bus structure
CSV column extract column extraction
【路科V0】验证环境2——验证环境组件
5.6 comprehensive case - RTU-
Failed to convert a NumPy array to a Tensor(Unsupported Object type int)
什么是RPC
LeetCode简单题之统计字符串中的元音子字符串
[effective go Chinese translation] part I
How to generate assembly file
耳穴减肥自身感受细节描述0422
JS中复制数组