当前位置:网站首页>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 !
边栏推荐
- 让我们,从头到尾,通透网络I/O模型
- Comparison between variable and "zero value"
- MySQL authentication bypass vulnerability (cve-2012-2122)
- Balanced Multimodal Learning via On-the-fly Gradient Modulation(CVPR2022 oral)
- How big is the empty structure?
- QT signal and slot
- 同构+跨端,懂得小程序+kbone+finclip就够了!
- COSCon'22 社区召集令来啦!Open the World,邀请所有社区一起拥抱开源,打开新世界~
- Word2vec (skip gram and cbow) - pytorch
- 企业不想换掉用了十年的老系统
猜你喜欢

Aardio - integrate variable values into a string of text through variable names

Motion capture for snake motion analysis and snake robot development

企業不想換掉用了十年的老系統

ICLR 2022 | 基于对抗自注意力机制的预训练语言模型

C three ways to realize socket data reception

NFTScan 开发者平台推出 Pro API 商业化服务

视图(view)

Balanced Multimodal Learning via On-the-fly Gradient Modulation(CVPR2022 oral)

Efficient ETL Testing

Method of canceling automatic watermarking of uploaded pictures by CSDN
随机推荐
three. JS gorgeous bubble effect
动作捕捉用于蛇运动分析及蛇形机器人开发
CRMEB商城系统如何助力营销?
Dockermysql modifies the root account password and grants permissions
Demonstration of the development case of DAPP system for money deposit and interest bearing financial management
MySQL authentication bypass vulnerability (cve-2012-2122)
What are the specific steps and schedule of IELTS speaking?
【Unity】升级版·Excel数据解析,自动创建对应C#类,自动创建ScriptableObject生成类,自动序列化Asset文件
Const keyword
Return keyword
docker mysql5.7如何设置不区分大小写
memcached
How to use flexible arrays?
Unified Focal loss: Generalising Dice and cross entropy-based losses to handle class imbalanced medi
TDengine 社区问题双周精选 | 第二期
Slide the uniapp to a certain height and fix an element to the top effect demo (organize)
华为云GaussDB(for Redis)揭秘第21期:使用高斯Redis实现二级索引
ICLR 2022 | 基于对抗自注意力机制的预训练语言模型
(DART) usage supplement
(shuttle) navigation return interception: willpopscope