> For the complete documentation index, see [llms.txt](https://docs-jmapserver-lima.k2geospatial.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-jmapserver-lima.k2geospatial.com/e/administrator/jmap-server-administrator-manual/resources-databases/managing-databases.md).

# Managing Databases

## Reinitializing databases

Reinitializing a database closes all open connections and creates new ones. This can be useful to force a reconnection to a database system.

## Deactivating databases

Deactivating a database closes connections to the database without deleting its configuration. JMap Server can no longer query the database. Deactivating is useful when the database stops responding and causes delays in the local server.

## Deleting databases

Deleting a database deletes the connection configuration for the database system. The data contained in the database is not affected at all.

## Database statuses

Each database has a status. The status indicates the condition of the database connection. The following table describes the possible statuses of a database.

<table data-header-hidden><thead><tr><th width="139.5"></th><th></th></tr></thead><tbody><tr><td><strong>Statuses</strong></td><td> </td></tr><tr><td>Error</td><td><p>The database connections are broken. </p><p>The database cannot be used until the error is resolved and the connections are reopened. Reinitializing the database might correct the problem. </p><p>You can view a description of the error by clicking on the word <strong>Error</strong> displayed in red.</p></td></tr><tr><td>Inactive</td><td>The database connections are closed but they are configured. JMap can no longer query the database.</td></tr><tr><td>Connected</td><td>The database connections were created successfully and are ready to be used.</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs-jmapserver-lima.k2geospatial.com/e/administrator/jmap-server-administrator-manual/resources-databases/managing-databases.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
