立即学习:https://edu.csdn.net/course/play/27328/370703?utm_source=blogtoedu
创建用户:
create user '用户名' [@'主机名'] [identified by '密码'];
主机名 = '%' 从任何地方都能登陆
MySQL的用户账户由两部分组成:用户名和主机名
删除用户:
drop user '用户名' [@'主机名'];
修改密码:
alter user '用户名'@'主机名' identified by '新密码';
例:
create user 'Nekonlaa' @'localhost' identified by '123456';
create user 'Nekonlaa' @'%' identified by '123456';
此时没有任何权限