新聞中心
這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
MySQL限制IP網(wǎng)段范圍從遠(yuǎn)程訪問的方法
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數(shù)據(jù)庫的所有權(quán)限授權(quán)給test這個(gè)用戶,只允許test用戶在192.168.8/9/20這三個(gè)網(wǎng)段的IP范圍進(jìn)行遠(yuǎn)程登陸,并設(shè)置test用戶的密碼為123456
刷新權(quán)限表使其設(shè)置生效:
mysql> flush privileges;
網(wǎng)頁題目:MySQL限制IP網(wǎng)段范圍從遠(yuǎn)程訪問的方法
URL網(wǎng)址:http://www.ef60e0e.cn/article/gejjhj.html
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數(shù)據(jù)庫的所有權(quán)限授權(quán)給test這個(gè)用戶,只允許test用戶在192.168.8/9/20這三個(gè)網(wǎng)段的IP范圍進(jìn)行遠(yuǎn)程登陸,并設(shè)置test用戶的密碼為123456
刷新權(quán)限表使其設(shè)置生效:
mysql> flush privileges;
網(wǎng)頁題目:MySQL限制IP網(wǎng)段范圍從遠(yuǎn)程訪問的方法
URL網(wǎng)址:http://www.ef60e0e.cn/article/gejjhj.html