MySQL如何让别人远程连接自己的数据库

grant all privileges on *.* to 'root'@'192.168.2.162' identified by 'root';

想让对方ip访问本机mysql需要把对方ip放进去

如何即可用sql连接工具进行连接

原文地址:https://www.cnblogs.com/chengxiaolong/p/10194900.html