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

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

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

相关文章: