当前位置:网站首页>二进制安装 mysql 初始化密码问题
二进制安装 mysql 初始化密码问题
2022-07-17 08:33:00 【Direct_】
二进制安装 mysql 初始化密码问题
二进制安装可参考https://blog.csdn.net/D1179869625/article/details/125213724
1.将初始化密码保存到日志文件中
# 使用 --initialize 参数初始化 mysql 时产生的密码,将密码保存在 log 日志中
bin/mysqld --initialize --user=mysql --datadir=/usr/local/mysql/data --basedir=/usr/local/mysql --log_error=/usr/local/mysql/mysql-files/mysql.log
2.不创建初始化密码
# 使用 --initialize-insecure 参数初始化,这个时候初始化的 root 是没有初始密码的
bin/mysqld --initialize-insecure --user=mysql --datadir=/usr/local/mysql/data --basedir=/usr/local/mysql --log_error=/usr/local/mysql/mysql-files/mysql.log
边栏推荐
- Microservices and microservice architecture
- Openfeign service interface call
- 2022广东省安全员A证第三批(主要负责人)练习题及模拟考试
- Softmax regression + loss function + image classification dataset
- LeetCode 0116. Populate the next right node pointer for each node
- QR分解求矩阵逆--c工程实现
- Convex mirror 3D glass contour scanning
- Translucent double glass side thickness
- 一文,教你实现单点登录
- MySQL索引(三)
猜你喜欢

idea按条件断点调试

Change the theme of hbuilderx into vscode

2022 Guangdong Provincial Safety Officer a certificate, the third batch (main person in charge) exercise questions and mock examination

Leetcode sword finger offer II 041 Average value of sliding window: low space consumption solution

分布式事务-最大努力通知方案

matlab导入小数点后9位以上的浮点数

How to set preferences when developing esp8266 and esp32 with Arduino

Snap 1669 combine deux notes de liste

Nacos new configuration management

Redis common data types - hash and ordered set Zset (sorted set)
随机推荐
JSON under mysql8
【AXI】解读AXI协议的额外信号(QOS信号,REGION信号,与USER信号)
2022 Shanghai safety officer C certificate national question bank and answers
Junit5
STM32CUBEIDE(9)----USART通过DMA收发
Paddleserving service deployment tensorrt reports an error, shape of TRT subgraph is [-1, -1768],
Linear regression + basic optimization of deep learning
分布式事务-最大努力通知方案
力扣912排序数组笔记
2022 Guangdong Provincial Safety Officer a certificate, the third batch (main person in charge) exercise questions and mock examination
2022年P气瓶充装考试练习题模拟考试平台操作
Ribbon load balancing service call
【人脸识别】基于直方图Histogram实现人脸识别附matlab代码
MySQL data type
【回归预测】基于粒子滤波实现锂离子电池寿命预测附matlab代码
rosbridge
也挺难的,不光我自己写的很累
深度学习之线性回归+基础优化
Change the theme of hbuilderx into vscode
scratch逆序输出 电子学会图形化编程scratch等级考试四级真题和答案解析2022年6月