posts - 122,  comments - 25,  trackbacks - 0

           Source Installation Overview
          ----------------------------------

          The basic commands you must execute to install a MySQL source
          distribution are:

               shell> groupadd mysql
               shell> useradd -g mysql mysql
               shell> gunzip < mysql-VERSION.tar.gz | tar -xvf -
               shell> cd mysql-VERSION
               shell> ./configure --prefix=/usr/local/mysql
               shell> make
               shell> make install
               shell> cp support-files/my-medium.cnf /etc/my.cnf
               shell> cd /usr/local/mysql
               shell> bin/mysql_install_db --user=mysql
               shell> chown -R root  .
               shell> chown -R mysql var
               shell> chgrp -R mysql .
               shell> bin/mysqld_safe --user=mysql &

          If you start from a source RPM, do the following:

               shell> rpmbuild --rebuild --clean MySQL-VERSION.src.rpm

          Set Root Password for MySQL
           /usr/local/bin/mysqladmin -u root password 'new-password'


          使用GRANT ... IDENTIFIED BY語句,來進(jìn)行授權(quán)
          GRANT select,insert,delete,update on dbname.* to  user@'%' IDENTIFIED BY 'manager';
          這里PASSWORD()函數(shù)是不必要的,也不需要使用FLUSH PRIVILEGES來執(zhí)行確認(rèn)
          posted on 2007-11-28 19:54 josson 閱讀(396) 評論(0)  編輯  收藏 所屬分類: 數(shù)據(jù)庫
          <2007年11月>
          28293031123
          45678910
          11121314151617
          18192021222324
          2526272829301
          2345678

          常用鏈接

          留言簿(3)

          隨筆分類

          隨筆檔案

          收藏夾

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 若尔盖县| 班玛县| 十堰市| 清流县| 双桥区| 安溪县| 黔东| 尚义县| 临清市| 乌鲁木齐县| 和顺县| 遂川县| 齐齐哈尔市| 东莞市| 日照市| 永定县| 长春市| 呼玛县| 丰宁| 康定县| 云阳县| 伊春市| 托克逊县| 深水埗区| 平远县| 虎林市| 德格县| 奉贤区| 桃源县| 乌苏市| 巴彦淖尔市| 抚顺县| 三明市| 青川县| 页游| 锦州市| 突泉县| 宝山区| 通州市| 铁岭县| 厦门市|