当前位置:网站首页>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 !
边栏推荐
- [launched in the whole network] redis series 3: high availability of master-slave architecture
- How to confirm the storage mode of the current system by program?
- Machine test question 1
- Pytest unit test series [v1.0.0] [pytest execute unittest test case]
- poj 1094 Sorting It All Out (拓扑排序)
- Signed and unsigned keywords
- Windows auzre background operation interface of Microsoft's cloud computing products
- AcWing 4300. Two operations (minimum number of BFS searches)
- Dayu200 experience officer runs the intelligent drying system page based on arkui ETS on dayu200
- CUDA exploration
猜你喜欢
【Unity】升级版·Excel数据解析,自动创建对应C#类,自动创建ScriptableObject生成类,自动序列化Asset文件
How to confirm the storage mode of the current system by program?
dockermysql修改root账号密码并赋予权限
NFTScan 开发者平台推出 Pro API 商业化服务
为了交通安全,可以做些什么?
Modules that can be used by both the electron main process and the rendering process
(shuttle) navigation return interception: willpopscope
CUDA exploration
Sword finger offer question brushing record 1
View
随机推荐
Unified Focal loss: Generalising Dice and cross entropy-based losses to handle class imbalanced medi
室内LED显示屏应该怎么选择?这5点注意事项必须考虑在内
Custom swap function
Comparison between variable and "zero value"
UE4 blueprint learning chapter (IV) -- process control forloop and whileloop
Detailed explanation of ThreadLocal
How does crmeb mall system help marketing?
BasicVSR_ Plusplus master test videos and pictures
[IELTS speaking] Anna's oral learning record part1
使用云服务器搭建代理
Hard core observation 545 50 years ago, Apollo 15 made a feather landing experiment on the moon
CRMEB商城系统如何助力营销?
Demonstration of the development case of DAPP system for money deposit and interest bearing financial management
DockerMySQL无法被宿主机访问的问题解决
Traversal of a tree in first order, middle order, and then order
Dayu200 experience officer homepage AITO video & Canvas drawing dashboard (ETS)
OpenSSL:适用TLS与SSL协议的全功能工具包,通用加密库
为了交通安全,可以做些什么?
Aardio - integrate variable values into a string of text through variable names
Aardio - construct a multi button component with customplus library +plus