1、下载mysql安装包,版本自己定 ,本教程以mysql-8.0.12-winx64为例

https://dev.mysql.com/downloads/mysql/

window mysql8 安装教程

2、解压

window mysql8 安装教程

3、修改my.ini文件

window mysql8 安装教程

3、进入解压后的mysql路径中的bin路径 ,按住shift 鼠标右键  在此处打开命令窗口  

window mysql8 安装教程

 

window mysql8 安装教程

 

相关脚本:

mysqld --install
mysqld --initialize --console

alter user 'root'@'localhost' identified with mysql_native_password by '123456';
create user 'root'@'%' identified by '123456';
GRANT ALL ON *.* TO 'root'@'%';
flush privileges;

 

相关文章:

  • 2021-08-06
  • 2021-07-14
  • 2021-04-05
  • 2021-09-20
  • 2021-09-11
  • 2022-01-22
  • 2021-09-15
猜你喜欢
  • 2021-04-11
  • 2021-12-24
  • 2021-09-05
  • 2022-02-01
  • 2021-11-17
  • 2021-09-01
相关资源
相似解决方案