cd C:\mysql-8.0.12-winx64\bin
mysqld --initialize-insecure --user=mysql --console
mysqld install
net start mysql
pause
echo use mysql;>in.txt
echo update user set authentication_string='' where user='root'; >>in.txt
echo ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456';>>in.txt
echo FLUSH PRIVILEGES;>>in.txt
mysql -u root <in.txt
MySQL初始化并设置默认密码123456一键操作dos命令
原创wx5db0172d8f2b3 博主文章分类:mysql ©著作权
©著作权归作者所有:来自51CTO博客作者wx5db0172d8f2b3的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
CentOS7.9系统初始化安装配置操作
CentOS7.9系统初始化安装配置
sed 配置文件 重启 -
解读MySQL 8.0数据字典的初始化与启动
MySQL 8.0新设计实现的数据字典,解决了之前版本的数据字典冗余,DDL原子性、crash safe等问题。
数据字典 System MySQL 索引 GaussDB -
一键linux系统初始化脚本
请认准正版地址:http://blog.51cto.com
服务器 系统 初始化 -
Mysql设置初始化密码和修改密码
刚开始创建mysql的时候,一般需要修改;而且,本人碰到过在几台服务器
mysql root密码 配置文件