当前位置:网站首页>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 mysqlThis 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 !
边栏推荐
- 室内LED显示屏应该怎么选择?这5点注意事项必须考虑在内
- UVa 11732 – strcmp() Anyone?
- (flutter2) as import old project error: inheritfromwidgetofexacttype
- Dayu200 experience officer runs the intelligent drying system page based on arkui ETS on dayu200
- How to confirm the storage mode of the current system by program?
- AcWing 4300. Two operations (minimum number of BFS searches)
- Devsecops software R & D security practice - release
- How to choose indoor LED display? These five considerations must be taken into account
- COSCon'22 社区召集令来啦!Open the World,邀请所有社区一起拥抱开源,打开新世界~
- 同构+跨端,懂得小程序+kbone+finclip就够了!
猜你喜欢
MySQL中正则表达式(REGEXP)使用详解

How to confirm the storage mode of the current system by program?

金融人士必读书籍系列之六:权益投资(基于cfa考试内容大纲和框架)

MATLAB小技巧(27)灰色预测

Word2vec (skip gram and cbow) - pytorch

【Unity】升级版·Excel数据解析,自动创建对应C#类,自动创建ScriptableObject生成类,自动序列化Asset文件

ICLR 2022 | pre training language model based on anti self attention mechanism

Aardio - construct a multi button component with customplus library +plus
![[compilation principle] LR (0) analyzer half done](/img/ec/b13913b5d5c5a63980293f219639a4.png)
[compilation principle] LR (0) analyzer half done

COSCon'22 社区召集令来啦!Open the World,邀请所有社区一起拥抱开源,打开新世界~
随机推荐
NPM cannot install sharp
Custom swap function
Introduction to network basics
[step on pit collection] attempting to deserialize object on CUDA device+buff/cache occupy too much +pad_ sequence
How does crmeb mall system help marketing?
UVa 11732 – strcmp() Anyone?
On file uploading of network security
企業不想換掉用了十年的老系統
cuda 探索
同构+跨端,懂得小程序+kbone+finclip就够了!
MySQL实现字段分割一行转多行的示例代码
「小程序容器技术」,是噱头还是新风口?
前置机是什么意思?主要作用是什么?与堡垒机有什么区别?
使用云服务器搭建代理
TypeScript获取函数参数类型
Huawei cloud gaussdb (for redis) unveils issue 21: using Gauss redis to achieve secondary indexing
视图(view)
MySQL中正则表达式(REGEXP)使用详解
石墨文档:4大对策解决企业文件信息安全问题
How to choose indoor LED display? These five considerations must be taken into account