legacy-knowledge-base
公開されました Jul. 2, 2025

Windows 10 と MySQL を使用している場合、アップグレード中にテーブルの「名前の変更でエラーが発生しました」

written-by

Cristina Rodriguez

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • Liferay のアップグレードを実行すると、プロセスが停止し、ログに次のエラーが表示されます。
2021-05-06 08:49:36.319 INFO [main][UpgradeProcess:115] Failed upgrade process com.liferay.portal.upgrade.UpgradeProcess_7_0_0 in 33771 ms
com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.upgrade.UpgradeException: java.sql.SQLException: Error on rename of '.\lportal_ee620\#sql-15cc_1e3' to '.\lportal_ee620\layout' (errno: 168 - Unknown (generic) error from engine)
  • アップグレードが列のデータ型を更新しようとすると、通常は (ランダムに、常に同じテーブルにあるとは限りません) 発生します。
[main][UpgradeMySQL:140] Updating columns for table layout to datetime(6)


Environment

  • Liferay 6.2 から Liferay DXP (7.0、7.1、7.2、7.3) にアップグレードします。
  • MySQL (サポートされている任意のバージョン)。
  • ウィンドウズ10。
  • Windows セキュリティ: リアルタイム保護が有効です。

解決策

  • Windows 10 は、サポートされている OS の Liferay の互換性マトリックス には記載されていませんが、ローカルでアップグレードをテストするのが一般的なシナリオです。
  • この問題を回避するには、アップグレードを実行する前に、Windows のウイルスとスレッドのリアルタイム保護を無効にする必要があります。 Windows セキュリティ -> ウイルスとスレッド保護の設定 -> 設定の管理 -> リアルタイム保護をオフにする
  • プロセスが終了したら、この設定を再度オンにしてください。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base