当前位置:网站首页>docker中mysql远程连接
docker中mysql远程连接
2022-07-20 15:18:00 【漫漫想想】
1、设置端口映射
2、修改user中root权限,设置为host为%
注意mysql8.0以上创建用户与设置用户权限是分开的,所以网上多数教程中的会报错
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION;
修改为下面内容即可
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;
3、配置安全组中入方向,开放对应端口
边栏推荐
- Unity+Photon自制多人TPS游戏
- js 数组reduce方法求和 求最大值 求最小值方法
- 【转】Jackson之多态反序列化(父类转不同子类)
- Deep and Direct Visual SLAM 深度、直接法SLAM
- js 验证只能输入数字和一个小数点
- 【mindspore】【模式】PYNATIVE_MODE模式和GRAPH模式的区别
- [HMS core], [FAQ], [Health Kit] encountered some small problems in the process of integrating sports health services. Today, I share with you (Huawei watch, Bracelet + sports health service problems C
- flv.js的追帧、断流重连及实时更新的直播优化方案
- Add element at the beginning of array in JS
- Write multiple main in the source file of vs stdio project
猜你喜欢
随机推荐
torch.nn.SyncBatchNorm.convert_sync_batchnorm对应的mindspore用法
About the basic setup of win7/win10 system installation
[harmonyos] [arkui] Hongmeng linear gradient to achieve gradient, how to dynamically set it? I tried it for your reference
iperf详细使用方法
【HMS Core】【FAQ】【Health Kit】集成运动健康服务过程中,遇到一些小问题,今天分享给大家(华为手表、手环+运动健康服务问题合集)
jquer $(‘div li‘) $(‘div,li‘) $(‘div>li‘) $(‘div‘,‘li‘)
mysql中where条件使用不等于!=、in等时出现空值被过滤掉的问题
C语言力扣第九题之回文数。两指针数组遍历法
@ModelAttribute运用详解
【HMS core】【Wallet Kit】【解决方案】华为钱包的客户端示例代码为何无法运行
【论文翻译】TNT: Target-driveN Trajectory Prediction
关于win7/win10系统安装的基本设置
华为云:一切皆服务,共建全场景智慧金融
【无标题】
[harmony OS] [FAQ] Hongmeng application development problem sharing (font / constructor)
【BERT】Transformer/BERT/Attention面试问题与答案
Binary number inversion (C language)
C语言力扣第八题之字符串转换整数。遍历法
[HMS core] [wallet kit] [solution] why can't Huawei wallet's client sample code run
Using vant webapp in wechat applet