虽然我们可以利用很多工具进行管理,但是有些命令还是必须知道的。1.设置root密码
update mysql.user set password=password('密码') where user='root';
2.root改名
update mysql.user set user='myroot' where user='root';
3.删除用户
delete from mysql.user where user='root';
4.批量设置密码
update mysql.user set password=password('密码') where password='';
5.创建数据库
create database forum grant all on forum.* to root@'localhost' identified by 'xxx';
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/23141985/viewspace-712423/
,如需转载,请注明出处,否则将追究法律责任。