• ADADADADAD

    MySQL限制IP网段范围从远程访问的方法[ mysql数据库 ]

    mysql数据库 时间:2024-12-03 12:14:27

    作者:文/会员上传

    简介:

    mysql>grant select,insert,update,create on test.* to test@'192.168.8.%' identified by '123456';

    mysql>grant select,insert,update,create on test.* to test@'192.

    以下为本文的正文内容,内容仅供参考!本站为公益性网站,复制本文以及下载DOC文档全部免费。

    mysql>grant select,insert,update,create on test.* to test@'192.168.8.%' identified by '123456';

    mysql>grant select,insert,update,create on test.* to test@'192.168.9.%' identified by '123456';

    mysql>grant select,insert,update,create on test.* to test@'192.168.20.%' identified by '123456';

    上面的语句表示将test数据库的所有权限授权给test这个用户,只允许test用户在192.168.8/9/20这三个网段的IP范围进行远程登陆,并设置test用户的密码为123456

    刷新权限表使其设置生效:
    mysql> flush privileges;



    MySQL限制IP网段范围从远程访问的方法.docx

    将本文的Word文档下载到电脑

    推荐度:

    下载
    热门标签: ip网段范围