当前位置:网站首页>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
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 !
边栏推荐
- 如何实现文字动画效果
- CRMEB商城系统如何助力营销?
- MySQL ---- first acquaintance with MySQL
- European Bioinformatics Institute 2021 highlights report released: nearly 1million proteins have been predicted by alphafold
- OpenSSL:适用TLS与SSL协议的全功能工具包,通用加密库
- 第十九章 使用工作队列管理器(二)
- Method of canceling automatic watermarking of uploaded pictures by CSDN
- Signed and unsigned keywords
- 服务器的系统怎么选者
- Aardio - construct a multi button component with customplus library +plus
猜你喜欢

Cocoscreator+typescripts write an object pool by themselves

案例推荐丨安擎携手伙伴,保障“智慧法院”更加高效

C# 三种方式实现Socket数据接收

Method of canceling automatic watermarking of uploaded pictures by CSDN

Introduction to network basics

On file uploading of network security

机试刷题1

Config:invalid signature solution and troubleshooting details

CocosCreator+TypeScripts自己写一个对象池

UE4 blueprint learning chapter (IV) -- process control forloop and whileloop
随机推荐
Bipartite graph determination
2022-07-04 the high-performance database engine stonedb of MySQL is compiled and run in centos7.9
OpenNMS separation database
金融人士必读书籍系列之六:权益投资(基于cfa考试内容大纲和框架)
Financial professionals must read book series 6: equity investment (based on the outline and framework of the CFA exam)
Uniapp setting background image effect demo (sorting)
浅谈网络安全之文件上传
Dealing with the crash of QT quick project in offscreen mode
Balanced Multimodal Learning via On-the-fly Gradient Modulation(CVPR2022 oral)
npm无法安装sharp
Sword finger offer question brushing record 1
The difference between enumeration and define macro
memcached
自定义 swap 函数
Advantages of link local address in IPv6
CSDN 上传图片取消自动加水印的方法
poj 1094 Sorting It All Out (拓扑排序)
Is there any requirement for the value after the case keyword?
Chapter 19 using work queue manager (2)
ICLR 2022 | 基于对抗自注意力机制的预训练语言模型