mysql设置访问权限 ip段

create user ' user'@'192.168.1.%'  identified by '******';

grant all privileges on `database`.* to 'user'@'192.168.1.%' with grant option;

flush privileges;

猜你喜欢

转载自blog.csdn.net/qq_36999656/article/details/79840084