Please enable Javascript to view the contents

Mysql8安装步骤

 ·  ☕ 1 分钟
  1. 安装完初始化
1
mysqld --initialize --console

注意记住控制台打印的密码

  1. 添加用户
1
2
3
create user 'test1'@'localhost' identified by '‘密码';

flush privileges; #刷新权限
  1. 修改密码
1
2
3
Alter user 'test1'@'localhost' identified by '新密码';

flush privileges;
  1. 赋予权限
1
grant all privileges on *.* to 'test1'@'localhost' with grant option;
  1. 删除用户
1
drop user 'test1'@'localhost';
分享

三排三号
作者
三排三号
Backend Programmer