1. 新增用户
grant all on *.* to '库名'@'%' identified by '库名';
2. 刷新授权表
flush privileges;
3. 删除空用户
use mysql;
delete from user where user='';
flush privileges;
2023-01-15 08:03:41
1. 新增用户
grant all on *.* to '库名'@'%' identified by '库名';
2. 刷新授权表
flush privileges;
3. 删除空用户
use mysql;
delete from user where user='';
flush privileges;
下一篇:Mybatis知识(4)