posts - 0,  comments - 5,  trackbacks - 0
          grant all privileges on *.* to root@’192.168.2.%’ identified by ‘123456′;
          *.*表示所有數據庫的所有表,只為test數據庫增加則改為test.*
          root@’192.168.2.%’ 表示用戶名為root,可以自行更改,’192.168.2.%’是限制訪問的IP段
          可單獨指定一個IP.如’192.168.2.165′ 也可以用于所有IP ‘%’
          identified by ‘123456′; 訪問時的密碼
          如果只想設置部分權限,如只有查詢和增加權限
          grant select,create privileges on *.* to root@’192.168.2.%’ identified by ‘123456′;
          權限一般有這幾種select,insert,update,delete,create,drop

          mysql 的表類型更改
          修改
          alter table tablename change colaname newcolname integer not null
          增加
          alter table tablename add colname integer not null
          刪除
          alter table tablename drop colnum colname
          posted on 2007-11-19 10:27 crazy 閱讀(246) 評論(0)  編輯  收藏 所屬分類: mysql數據庫
          主站蜘蛛池模板: 丰城市| 文化| 台中市| 清流县| 栾城县| 大宁县| 余干县| 马龙县| 浙江省| 商水县| 辰溪县| 盐边县| 大港区| 四会市| 北宁市| 芮城县| 南宁市| 准格尔旗| 合水县| 宁强县| 嘉义县| 民权县| 东乡族自治县| 雷波县| 富蕴县| 原平市| 黄陵县| 邢台县| 当雄县| 富平县| 河津市| 玛纳斯县| 平邑县| 周口市| 岱山县| 龙泉市| 化德县| 灵山县| 江川县| 同江市| 承德市|