当前位置:网站首页>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
边栏推荐
- WordPress love navigation theme 1.1.3 simple atmosphere website navigation source code website navigation source code
- vslam PPT
- Listed on the Shenzhen Stock Exchange: the market value is 5.2 billion yuan. Lu is the East and his daughter is American
- RPC procedure
- Install MySQL for Ubuntu and query the average score
- Description of the abnormity that the key frame is getting closer and closer in the operation of orb slam
- Trust uses Tokio's notify and timeout to achieve the effect similar to the timeout condition variable
- Word plus watermark
- 对li类数组对象随机添加特性,并进行排序
- Search the complete navigation program source code
猜你喜欢

MySQL数据库中delete、truncate、drop原理详解

Idea: export Yapi interface using easyyapi plug-in

总线结构概述

excle加水印

Kubernetes in browser and IDE | interactive learning platform killercoda

'恶霸' Oracle 又放大招,各大企业连夜删除 JDK。。。

There are some problems when using numeric type to query string type fields in MySQL

An article understands variable lifting

关于ORB——SLAM运行中关键帧位置越来越近的异常说明

输入/输出系统
随机推荐
Navicat远程连接mysql
对OutputStream类的flush()方法的误解
Somme numérique de la chaîne de calcul pour un problème simple de leetcode
Kubernetes in browser and IDE | interactive learning platform killercoda
Shell script advanced
记录:js删除数组中某一项或几项的几种方法
ELK生产实践
SYS_CONNECT_BY_PATH(column,'char') 结合 start with ... connect by prior
Copy array in JS
[learning] audio and video development from scratch (9) -- nuplayer
分布式消息中间件框架选型-数字化架构设计(7)
Search the complete navigation program source code
rust 使用tokio的Notify 和timeout实现类似可超时条件变量的效果
Word plus watermark
Generate and parse tokens using JWT
Online yaml to XML tool
ansible自動化運維詳解(一)ansible的安裝部署、參數使用、清單管理、配置文件參數及用戶級ansible操作環境構建
Campus transfer second-hand market source code download
form表单 post提交 数据量大的问题
SYS_ CONNECT_ BY_ Path (column, 'char') combined with start with connect by prior