上一個主題: 備份單一登入配置檔案下一個主題: 重新安裝後還原資料庫


採取額外的資料庫升級步驟

重要! 下列程序僅需用於將 CA Performance Center 2.2.00 版升級到 2.3.00 版。

升級到 CA Performance Center 2.3.00 版 需要進行一次性的資料庫伺服器升級,以支援較新版的 Red Hat Enterprise Linux。 先前版本的 CA Performance Center 包含 MySQL v5.1,必須升級到 5.6 版。

升級將自動備份資料庫內容。 不過,如果這個步驟無法正確執行,您必須手動備份 CA Performance Center 資料庫並指定將其用於升級。 錯誤訊息將通知您自動備份是否已失敗。

請依循下列步驟:

  1. 執行下列命令以備份資料庫:
    echo 'show databases;' | mysql | grep -v ^Database$ | grep -v ^information_schema$ | grep -v ^mysql$ | grep -v ^test$ | grep –v performance_schema$ |  xargs mysqldump --add-drop-database --databases -R > databaseBackup.sql
    

    若找不到 mysqldump,您可以手動定義備份檔案的位置。 例如,輸入下列命令:

    /opt/CA/MySql/bin/mysqldump
    
  2. 建立一個名為 responsefileName,且包含定義備份檔案位置的內容的檔案。

    responsefileName 檔應包含下列內容:

    MYSQL_BACKUP_FILE=/tmp/databaseBackup.sql
    
  3. 執行 CA Performance Center 安裝程式搭配回應檔選項:
    ./tmp/CAPerformanceCenter.bin -f responsefileName
    

    升級將繼續。 您建立的備份檔案將用於填入資料庫。