use mysql;
select host, user from user;
update user set host = '%' where user = 'root';
update user set host = '%' where user = 'root' and host = '本地ip地址';
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '设置通过Navicat软件中的ssh登录数据库的密码';
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。