当前位置:网站首页>The problem that dockermysql cannot be accessed by the host machine is solved
The problem that dockermysql cannot be accessed by the host machine is solved
2022-07-06 22:53:00 【1024 questions】
1 Problem description
2 reason
3 Solution
1 Problem descriptionDocker
start-up MySQL
After container , Create a localhost
Users visited :
create user [email protected] identified by 'test';
But you can't log in through this user in the host :
mycli -u test
2 reason stay Docker
Medium MySQL
establish localhost
Users of can only Docker
Internal visits , Not through external access .
As for why it can be accessed on the host root
, Because there are two by default root
, Namely :
and test
only one localhost
:
establish [email protected]%
Or create [email protected]
that will do :
create user [email protected]% identified by 'test';create user [email protected] identified by 'test';
This is about Docker MySQL This is the end of the article on how to solve the problem of being inaccessible by the host computer , More about Docker MySQL The content cannot be accessed by the host computer. Please search the previous articles of SDN or continue to browse the relevant articles below. I hope you will support SDN more in the future !
边栏推荐
- Custom swap function
- AdaViT——自适应选择计算结构的动态网络
- 儿童睡衣(澳大利亚)AS/NZS 1249:2014办理流程
- UE4 blueprint learning chapter (IV) -- process control forloop and whileloop
- CUDA exploration
- 企业不想换掉用了十年的老系统
- How to confirm the storage mode of the current system by program?
- 树的先序中序后序遍历
- Aardio - Method of batch processing attributes and callback functions when encapsulating Libraries
- cuda 探索
猜你喜欢
树的先序中序后序遍历
DR-Net: dual-rotation network with feature map enhancement for medical image segmentation
Financial professionals must read book series 6: equity investment (based on the outline and framework of the CFA exam)
On file uploading of network security
Word2vec (skip gram and cbow) - pytorch
Method of canceling automatic watermarking of uploaded pictures by CSDN
Improving Multimodal Accuracy Through Modality Pre-training and Attention
云原生技术--- 容器知识点
On the problems of born charge and non analytical correction in phonon and heat transport calculations
金融人士必读书籍系列之六:权益投资(基于cfa考试内容大纲和框架)
随机推荐
How to confirm the storage mode of the current system by program?
Introduction to network basics
Demonstration of the development case of DAPP system for money deposit and interest bearing financial management
[step on pit collection] attempting to deserialize object on CUDA device+buff/cache occupy too much +pad_ sequence
Detailed explanation of ThreadLocal
Some suggestions for foreign lead2022 in the second half of the year
Volatile keyword
How big is the empty structure?
MySQL教程的天花板,收藏好,慢慢看
Adavit -- dynamic network with adaptive selection of computing structure
Balanced Multimodal Learning via On-the-fly Gradient Modulation(CVPR2022 oral)
树的先序中序后序遍历
Gd32f4xx serial port receive interrupt and idle interrupt configuration
ICLR 2022 | 基于对抗自注意力机制的预训练语言模型
第十九章 使用工作队列管理器(二)
hdu 5077 NAND(暴力打表)
HDU 5077 NAND (violent tabulation)
QT信号和槽
Balanced Multimodal Learning via On-the-fly Gradient Modulation(CVPR2022 oral)
three. JS gorgeous bubble effect