隨筆-124  評論-194  文章-0  trackbacks-0
          update user set password = password ('xxxx') where user = "root";
          grant all privileges on *.* to root@'%' identified by 'xxxx';

          其它參數的例子:
          grant select,insert,update,delete,create,drop on vtdc.employee to joe@10.163.225.87 identified by '123';

            給來自10.163.225.87的用戶joe分配可對數據庫vtdc的employee表進行select,insert,update,delete,create,drop等操作的權限,并設定口令為123。


          要重啟一次MYSQL才能使本地用戶密碼生效:

          /usr/local/mysql/support-files/mysql.server restart


          posted on 2009-02-12 14:31 我愛佳娃 閱讀(1668) 評論(0)  編輯  收藏 所屬分類: DB相關
          主站蜘蛛池模板: 六枝特区| 桂林市| 平昌县| 南华县| 隆安县| 宁波市| 泾川县| 自治县| 高邑县| 濮阳县| 屏东市| 安庆市| 芜湖县| 慈利县| 河北省| 科尔| 新河县| 左权县| 游戏| 马尔康县| 理塘县| 莒南县| 罗源县| 胶南市| 义乌市| 土默特左旗| 武川县| 左贡县| 双鸭山市| 舒城县| 长沙县| 手机| 鸡西市| 武定县| 交口县| 萍乡市| 永城市| 湄潭县| 织金县| 米脂县| 湟源县|