小螞蟻  
          風(fēng)雨過后才見彩虹
          公告

          • —————————————
            李麗君
            軟件測試工作者
            廣東籍貫的海南人
            北京生活12年
            目前在深圳

            郵箱:
            llj2003hbdd@163.com
            —————————————
            說明:本Blog中的內(nèi)容均為本人原創(chuàng)或轉(zhuǎn)載,本人依法保留Blog內(nèi)原創(chuàng)文章的所有權(quán)利,如需轉(zhuǎn)載,請注明作者及出處。未經(jīng)許可,不得將本Blog內(nèi)文章用于任何盈利性用途。
            —————————————
          日歷
          <2012年12月>
          2526272829301
          2345678
          9101112131415
          16171819202122
          23242526272829
          303112345

          導(dǎo)航

          常用鏈接

          留言簿(174)

          隨筆分類(189)

          0--感興趣的網(wǎng)站

          1--國內(nèi)測試網(wǎng)站

          2--測試同行的blog

          3--開發(fā)好友的blog

          最新評論

           

            更新環(huán)境:redhat enterprise linux 5 + mysql-5.5.27+httpd-2.2.23+php-5.3.19+TestLink 1.8.4

          一、 備份TestLink 1.8.4數(shù)據(jù)庫
                使用如下命令備份TestLink 1.8.4的mysql數(shù)據(jù)庫
                # mysqldump -u root -p testlink | gzip > /tmp/llj/testlink_20121205.sql.gz
                Testlink是數(shù)據(jù)庫名字
                /tmp/llj/testlink_20121205.sql.gz 是備份存儲(chǔ)的路徑

          二、 導(dǎo)入TestLink 1.8.4數(shù)據(jù)庫
                創(chuàng)建新的數(shù)據(jù)庫用于導(dǎo)入備份的數(shù)據(jù)庫,命令如下:
                # mysql –u root –p
                輸入密碼后進(jìn)入mysql操作界面
                輸入:create database testlink_new
                使用如下命令導(dǎo)入備份的TestLink 1.8.4的mysql數(shù)據(jù)庫,從新命名數(shù)據(jù)庫名
                # Gunzip < testlink_20121205.sql.gz | mysql –u root –p testlink_new

          三、 安裝TestLink 1.9.4程序包
                安裝步驟具體見:http://www.aygfsteel.com/lijun_li/archive/2012/11/29/392224.html

          四、 更新導(dǎo)入的Testlink1.8.4數(shù)據(jù)庫表結(jié)構(gòu)
                記錄testlink的數(shù)據(jù)庫更新sql文件存放地方進(jìn)行數(shù)據(jù)庫表升級
                # cd /data/apache2/htdocs/Testlink/install/sql/alter_tables/
                # ll
                會(huì)顯示Testlink各版本的更新數(shù)據(jù)庫sql文件,從1.9依次升級到1.9.4
                進(jìn)入mysql執(zhí)行如下命令
          # mysql –u root –p
          # use testlink_new
          # source /data/apache2/htdocs/Testlink/install/sql/alter_tables/1.9/mysql/DB.1.3/step1/db_schema_update.sql
          # source /data/apache2/htdocs/Testlink/install/sql/alter_tables/1.9/mysql/DB.1.3/stepZ/z_final_step.sql
          # source /data/apache2/htdocs/Testlink/install/sql/alter_tables/1.9.1/mysql/DB.1.4/step1/db_schema_update.sql
          # source /data/apache2/htdocs/Testlink/install/sql/alter_tables/1.9.1/mysql/DB.1.4/stepZ/z_final_step.sql
          # source /data/apache2/htdocs/Testlink/install/sql/alter_tables/1.9.4/mysql/DB.1.5/step1/db_schema_update.sql
          # source /data/apache2/htdocs/Testlink/install/sql/alter_tables/1.9.4/mysql/DB.1.5/stepZ/z_final_step.sql
          # commit;

          五、 更新TestLink1.9.4配置文件
                進(jìn)入新安裝的TestLink1.9.4數(shù)據(jù)庫配置文件,更新鏈接的數(shù)據(jù)庫鏈接到testlink_new.
                # cd  /data/apache2/htdocs/Testlink
                # vi config_db.inc.php
                修改’DB_NAME’ 的值為:testlink_new
                保存后在瀏覽器訪問testlink,使用之前的老用戶賬戶登錄,能成功登錄進(jìn)去并看到之前的測試用例和測試計(jì)劃,恭喜你成功了。^_^。

          六、 更新缺失的數(shù)據(jù)庫表
                對比備份的TestLink 1.8.4和新安裝的TestLink 1.9.4數(shù)據(jù)庫表,發(fā)現(xiàn)還需要做如下操作。
                需要在testlink_new增加如下表:
                last_executions
                last_executions_by_platform
                tcversions_last_active_bare_bones
                需要在testlink_new刪除如下表:
                text_templates
                具體操作如下:
                # mysql –u root –p
                # use testlink_new
                # drop table text_templates;
                # create table Last_executions
                   (tcversion_id int(10) unsigned NOT NULL Default 0,
                    testplan_id int(10) unsigned NOT NULL Default 0,
                    platform_id int(10) unsigned NOT NULL Default 0,
                    Build_id int(10) NOT NULL Default 0,
                    id int(10) unsigned default NULL );
               # create table Last_executions_by_platform
                  (tcversion_id int(10) unsigned NOT NULL Default 0,
                   testplan_id int(10) unsigned NOT NULL Default 0,
                   platform_id int(10) unsigned NOT NULL Default 0,
                   id int(10) unsigned default NULL );
               # create table Tcversions_last_active_bare_bones
                  (tcase_id int(10) unsigned default NULL,tcversion_id int(10) unsigned default NULL);

              
                 到這里,更新完畢,轉(zhuǎn)帖的同行記得要寫上此貼出處。^_^。

           

          posted on 2012-12-06 12:10 lijun 閱讀(2638) 評論(0)  編輯  收藏 所屬分類: 測試環(huán)境維護(hù)實(shí)踐
           
          Copyright © lijun Powered by: 博客園 模板提供:滬江博客
          主站蜘蛛池模板: 弋阳县| 张家界市| 福贡县| 祁阳县| 开封县| 茌平县| 高青县| 花莲县| 醴陵市| 惠东县| 南充市| 北川| 新昌县| 金川县| 黑龙江省| 六盘水市| 通河县| 涿鹿县| 祁东县| 云梦县| 鹤山市| 万盛区| 岑巩县| 余干县| 马公市| 桑日县| 唐河县| 满洲里市| 永靖县| 沁阳市| 彭水| 义马市| 彭阳县| 常熟市| 伊通| 罗山县| 吉木萨尔县| 古交市| 威远县| 绥阳县| 同江市|