# Database FAQ

## 1. Why does Player Auctions keep throwing "No operations allowed after connection closed."?

If you're running MySQL, this is a very common issue. Sometimes your database server might be closing the connection because the connection is "sleeping", you can solve this by either adding `"autoReconnect=true"` to your sql arguments in the `config.yml` or you can enable the `close`option in the `config.yml` to close connections after every few minutes and open a new one.

## 2. Why does Player Auctions keep throwing "No operations allowed after connection closed."?

If you're running MySQL, this is a very common issue. Sometimes your database server might be closing the connection because the connection is "sleeping", you can solve this by either adding `"autoReconnect=true"` to your sql arguments in the `config.yml` or you can enable the `close`option in the `config.yml` to close connections after every few minutes and open a new one.

## 3. How do I convert my data from the SQLite to MySQL?

You can convert all of your data back and forth between MySQL and SQite. To convert from SQLite to MySQL, you will need to enter all of you connection details and enable MySQL. To convert from MySQL to SQLite you need to make sure all of your connection details have been entered but MySQL is disabled

Once completed, you can also enable the convert option. Once enabled, restart your server. The data will be converted. Once its been converted, disable the convert option back in the config then restart your server again. Should be all good to go!


---

# 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.olziedev.com/projects/playerauctions/faq/db.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.
