use mysql
-- 查看用户
select host,user from user;
-- 更新host
update user set host='%' where user='laremehpe';
-- 授予laremehpe用户 user表的查看、添加、更新权限
grant select,insert,update on user.* to 'laremehpe'@'%' with grant option;
-- 授予laremehpe用户所有表的远程管理权限
grant all privileges on *.* to 'laremehpe'@'%';

 

 posted on 2023-11-30 10:57  laremehpe  阅读(5)  评论(0编辑  收藏  举报