posts - 0,  comments - 5,  trackbacks - 0
          grant all privileges on *.* to root@’192.168.2.%’ identified by ‘123456′;
          *.*表示所有數(shù)據(jù)庫(kù)的所有表,只為test數(shù)據(jù)庫(kù)增加則改為test.*
          root@’192.168.2.%’ 表示用戶名為root,可以自行更改,’192.168.2.%’是限制訪問的IP段
          可單獨(dú)指定一個(gè)IP.如’192.168.2.165′ 也可以用于所有IP ‘%’
          identified by ‘123456′; 訪問時(shí)的密碼
          如果只想設(shè)置部分權(quán)限,如只有查詢和增加權(quán)限
          grant select,create privileges on *.* to root@’192.168.2.%’ identified by ‘123456′;
          權(quán)限一般有這幾種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 閱讀(244) 評(píng)論(0)  編輯  收藏 所屬分類: mysql數(shù)據(jù)庫(kù)
          主站蜘蛛池模板: 怀安县| 永靖县| 通州市| 策勒县| 汉寿县| 古田县| 栾川县| 华坪县| 武威市| 定州市| 弥勒县| 大连市| 柘荣县| 滕州市| 沛县| 浑源县| 宁河县| 邢台县| 河东区| 张掖市| 余庆县| 十堰市| 保山市| 建平县| 望谟县| 刚察县| 郧西县| 眉山市| 时尚| 灌阳县| 高清| 奉新县| 从化市| 拉萨市| 专栏| 怀柔区| 临江市| 巴彦淖尔市| 调兵山市| 靖安县| 南城县|