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