legacy-knowledge-base
公開されました Sep. 10, 2025

サーバーの起動時にcom.mysql.cj.jdbc.exceptions.CommunicationsExceptionを取得する

written-by

Anishq Sharma

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

問題

  • ユーザーは、サーバーの起動/再起動時に以下のエラーを受け取ります:
    ERROR [main][DialectDetector:147] com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure__The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. [Sanitized]
    com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure__The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. [Sanitized]

Environment

  • Liferay DXP 7.0
  • Liferay DXP 7.1
  • Liferay DXP 7.2

解決策

  • このエラーの原因は複数考えられます。
  • その理由の 1 つは、SSL の使用である可能性があります。
  • SSL が有効になっている場合は、JDBC URL に次のプロパティを追加してください。
    useSSL=true
did-this-article-resolve-your-issue

legacy-knowledge-base