# Update your Hibernate configuration

The Hibernate configuration file specifies driver and connection information, as well as dialects and how to handle connection closes and timeouts. You must have the latest version of this file for password encryption to work.

Perform the following steps to update the Hibernate configuration file for Pentaho 9.3.

1. [Stop the Pentaho Server](/install/9.3-install/pentaho-configuration/tasks-to-be-performed-by-an-it-administrator/configure-the-pentaho-server/start-and-stop-the-pentaho-server-for-configuration.md).
2. Navigate to the `pentaho/server/pentaho-server/pentaho-solutions/system/hibernate` directory.
3. Perform the following action depending on whether you have previously customized the `hibernate.cfg.xml` file for your database type:
   * If you have not customized the `hibernate.cfg.xml` file, replace the existing version of the file with the `hibernate.cfg.xml.merge.post-upgrade` file. The `hibernate.cfg.xml.merge.post-upgrade` file is the 9.3 version of the file.
   * If you have customized the `hibernate.cfg.xml` file before upgrading and you have not yet applied these customizations to the 9.3 version of the file, merge your customizations into the `hibernate.cfg.xml` file. See [Apply customizations](/install/9.3-install/pentaho-upgrade-cp/post-upgrade-tasks-pentaho-ugrade-cp/apply-customizations-post-upgrade-tasks.md) for instructions.
4. [Restart the server](/install/9.3-install/pentaho-configuration/tasks-to-be-performed-by-an-it-administrator/configure-the-pentaho-server/start-and-stop-the-pentaho-server-for-configuration.md) and confirm no errors occurred.

   Depending on the error, you may need to contact your customer support representative for help.

Hibernate now has the Pentaho 9.3 version of this file for password encryption to work.

After setting up Tomcat, Quartz, and Hibernate to work with password encryption, you can now use encrypted passwords with Pentaho 9.3 products. See [Use password encryption with Pentaho](/install/9.3-install/pentaho-configuration/tasks-to-be-performed-by-an-it-administrator/use-password-encryption-with-pentaho.md) for instructions.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pentaho.com/install/9.3-install/pentaho-upgrade-cp/post-upgrade-tasks-pentaho-ugrade-cp/setting-up-password-encryption-after-upgrading-pentaho-upgrade-cp/update-your-hibernate-configuration-post-upgrade-task.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
