Legacy Knowledge Base
Published Jun. 30, 2025

No external access to database

Written By

Sergio Alonso

How To articles are not official guidelines or officially supporteddocumentation. They are community-contributed content and may not alwaysreflect the latest updates to Liferay DXP. We welcome your feedback toimprove How to articles!

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

Legacy Article

You are viewing an article from our legacy "FastTrack"publication program, made available for informational purposes. Articlesin this program were published without a requirement for independentediting or verification and are provided "as is" withoutguarantee.

Before using any information from this article, independently verify itssuitability for your situation and project.

Issue

  • We need to make some modifications to the database, and therefore we have opened port 3306 of the database to be able to access it from outside, just as we have done many other times.

  • However, this time we were unable to connect to the database with the correct credentials (copied from the console Secrets).

  • We believe that it could be a network issue at the public endpoint.

Environment

  • PaaS

Resolution

  • It so happens that a change has been introduced, for security and performance reasons (to prepare a database engine migration to PostgreSQL), in the 'database' service image from version '5.4.0' onwards that prevents access to open ports from the outside.
  • The available alternatives for making changes to the database are as follows:
    1. Implementing Upgrade Steps. You have the following documentation available on how to implement it: Upgrading your database tables.
    2. Using the database client in write mode: You have the following documentation available on how to use it: Using the database client
    3. Using Groovy scripting (or even your own development that allows you to send DDL statements to the database).

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base