当前位置:网站首页>Docker starts MySQL and -emysql_ ROOT_ Password = my secret PW problem solving
Docker starts MySQL and -emysql_ ROOT_ Password = my secret PW problem solving
2022-07-06 23:08:00 【1024 questions】
One 、 Problem description
Two 、 solve
One 、 Problem descriptionUse today kitematic The latest version of mysql, Auto start report no password error
error: database is uninitialized and password option is not specified
You need to specify one of MYSQL_ROOT_PASSWORD, MYSQL_ALLOW_EMPTY_PASSWORD and MYSQL_RANDOM_ROOT_PASSWORD
The screenshot is as follows :
The error message is obvious
“ Database not initialized , The password is not set . You need to set MYSQL_ROOT_PASSWORD, MYSQL_ALLOW_EMPTY_PASSWORD and MYSQL_RANDOM_ROOT_PASSWORD Any of the three ”
among MYSQL_ROOT_PASSWORD namely root Password of the account .
MYSQL_ALLOW_EMPTY_PASSWORD That is, the password is allowed to be empty .
MYSQL_RANDOM_ROOT_PASSWORD One at a time root Account password .
Two 、 solveSet port information
We set it through the environment variable root password
Environment variables... Here Add a new item
MYSQL_ROOT_PASSWORD Then enter the password on the right
then “save” after mysql Restart normal
And then through navcat Connect , Find everything OK
Or run... From the command line
docker run -d -P -e MYSQL_ROOT_PASSWORD=root mysql
This is about docker start-up mysql And -e MYSQL_ROOT_PASSWORD=my-secret-pw That's all for the problem solving article , More about docker start-up mysql Please search the previous articles of software development network or continue to browse the relevant articles below. I hope you will support software development network more in the future !
边栏推荐
- What are the specific steps and schedule of IELTS speaking?
- [IELTS speaking] Anna's oral learning record part1
- 监控界的最强王者,没有之一!
- 动作捕捉用于蛇运动分析及蛇形机器人开发
- Precise drag and drop within a contentable
- 让我们,从头到尾,通透网络I/O模型
- 金融人士必读书籍系列之六:权益投资(基于cfa考试内容大纲和框架)
- Les entreprises ne veulent pas remplacer un système vieux de dix ans
- 企業不想換掉用了十年的老系統
- POJ 1094 sorting it all out
猜你喜欢
[launched in the whole network] redis series 3: high availability of master-slave architecture
asp读取oracle数据库问题
Custom swap function
为了交通安全,可以做些什么?
mysql连接vscode成功了,但是报这个错
Improving Multimodal Accuracy Through Modality Pre-training and Attention
Traversal of a tree in first order, middle order, and then order
Thinkphp5 multi table associative query method join queries two database tables, and the query results are spliced and returned
企业不想换掉用了十年的老系统
Signed and unsigned keywords
随机推荐
docker mysql5.7如何设置不区分大小写
What are the specific steps and schedule of IELTS speaking?
Case recommendation: An Qing works with partners to ensure that the "smart court" is more efficient
How to achieve text animation effect
Some suggestions for foreign lead2022 in the second half of the year
Unified Focal loss: Generalising Dice and cross entropy-based losses to handle class imbalanced medi
QT信号和槽
「小程序容器技术」,是噱头还是新风口?
Rust knowledge mind map XMIND
The problem that dockermysql cannot be accessed by the host machine is solved
Cloud native technology container knowledge points
Les entreprises ne veulent pas remplacer un système vieux de dix ans
POJ 1094 sorting it all out
存币生息理财dapp系统开发案例演示
NPM cannot install sharp
memcached
How to choose the server system
浅谈网络安全之文件上传
Cocoscreator+typescripts write an object pool by themselves
为了交通安全,可以做些什么?