时间:2021-07-01 10:21:17 帮助过:2人阅读
4、通过命令行进入到bin目录
C:\Windows\system32>d:
D:\>cd D:\mysql\mysql-winx64\bin
5、运行代码 mysqld --initialize-insecure --user=mysql
示例;D:\mysql\mysql-winx64\bin>mysqld --initialize-insecure --user=mysql
6、启动服务 运行 net start mysql 或者去服务管理里面去启动
7、修改root密码
mysql -u root -p
mysql>use mysql;
mysql>
update
user
set
authentication_string=
password
(
‘12345‘
)
where
user
=
‘root‘
and
Host =
‘localhost‘
;
mysql>
alter
user
‘root‘
@
‘localhost‘
identified
by
‘12345‘
;
mysql> FLUSH
PRIVILEGES
;
mysql> QUIT
注:注意上面红色地方。
mysql 免安装版配置
标签: