当前位置:网站首页>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 !
边栏推荐
- Config:invalid signature solution and troubleshooting details
- 浅谈网络安全之文件上传
- three.js绚烂的气泡效果
- Word2vec (skip gram and cbow) - pytorch
- Redis persistence mechanism
- 【踩坑合辑】Attempting to deserialize object on CUDA device+buff/cache占用过高+pad_sequence
- 监控界的最强王者,没有之一!
- OpenNMS分离数据库
- three. JS gorgeous bubble effect
- UE4蓝图学习篇(四)--流程控制ForLoop和WhileLoop
猜你喜欢
随机推荐
rust知识思维导图xmind
Dealing with the crash of QT quick project in offscreen mode
Bipartite graph determination
让我们,从头到尾,通透网络I/O模型
Dayu200 experience officer homepage AITO video & Canvas drawing dashboard (ETS)
Unified Focal loss: Generalising Dice and cross entropy-based losses to handle class imbalanced medi
2022-07-05 stonedb sub query processing parsing time analysis
How big is the empty structure?
Is there any requirement for the value after the case keyword?
关于声子和热输运计算中BORN电荷和non-analytic修正的问题
Config:invalid signature solution and troubleshooting details
DockerMySQL无法被宿主机访问的问题解决
Aardio - integrate variable values into a string of text through variable names
Comparison between variable and "zero value"
Aardio - does not declare the method of directly passing float values
BasicVSR_ Plusplus master test videos and pictures
MySQL教程的天花板,收藏好,慢慢看
TypeScript获取函数参数类型
做国外LEAD2022年下半年几点建议
Uniapp setting background image effect demo (sorting)