> For the complete documentation index, see [llms.txt](https://playground.e107sk.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://playground.e107sk.com/plugin-dev-quick-notes/how-to/custom-message-with-db-server-error.md).

# Custom message with DB server error

How to display user friendly message if there is database connection issue

This can occur due to incorrect configuration or issues with the hosting provider.\
It is a typical e107 message indicating that the database server cannot be reached.

<figure><img src="https://622447254-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1hG1fVexgtHyjxO1Kfmp%2Fuploads%2FIzxMeriHnW2HabjYqWoe%2Fimage.png?alt=media&amp;token=1befe48f-372c-40f0-b809-c59f00a3c86c" alt=""><figcaption></figcaption></figure>

You can customize this error message.\
To do so, create an HTML file named **error.html** and place it in the **core/e107\_themes** folder (not in your own theme’s folder).\
Your custom HTML file will be displayed instead of the default error, for example:<br>

<figure><img src="https://622447254-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1hG1fVexgtHyjxO1Kfmp%2Fuploads%2F04rmErgB46KKbhL45uU6%2Fimage.png?alt=media&amp;token=62bc7f12-5442-4c09-9ac6-0e3d11c82be6" alt=""><figcaption></figcaption></figure>
