navicat 远程连接 mysql

发布时间 2023-11-30 11:00:54作者: laremehpe
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'@'%';