mysql怎么限制ip访问

grant all privileges on *.* to 'root'@'ip'identified by '密码'; #授权某个ip的用户可以通过密码访问数据库
原文地址:https://www.cnblogs.com/xiaozx/p/10606473.html