Please enable Javascript to view the contents
Mysql8安装步骤
- 安装完初始化
1
|
mysqld --initialize --console
|
注意记住控制台打印的密码
- 添加用户
1
2
3
|
create user 'test1'@'localhost' identified by '‘密码';
flush privileges; #刷新权限
|
- 修改密码
1
2
3
|
Alter user 'test1'@'localhost' identified by '新密码';
flush privileges;
|
- 赋予权限
1
|
grant all privileges on *.* to 'test1'@'localhost' with grant option;
|
- 删除用户
1
|
drop user 'test1'@'localhost';
|
作者
三排三号
Backend Programmer