Mysql8安装步骤
目录
- 安装完初始化
mysqld --initialize --console注意记住控制台打印的密码
- 添加用户
create user 'test1'@'localhost' identified by '‘密码';
flush privileges; #刷新权限- 修改密码
Alter user 'test1'@'localhost' identified by '新密码';
flush privileges;- 赋予权限
grant all privileges on *.* to 'test1'@'localhost' with grant option;- 删除用户
drop user 'test1'@'localhost';