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

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

written-by

Anishq Sharma

knowledge-article-header-disclaimer-how-to

knowledge-article-header-disclaimer

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