# Converting databases

### Introduction

KGenerators allows you to store data in a various database types. In case you want to migrate data between them you should use this tutorial.

### Converting databases step by step

1. For safety reasons you should make backup of all your KGenerators data
2. Stay on database you are currently using
3. If you are converting to MySQL - configure it in config.yml
4. Open server console, as migrating data is only possible from there
5. Choose your new database type (MYSQL/SQLITE)
6. Type command `kgenerators convertdbto <database_type>`
7. Wait a while, migration will take place, database type in config.yml should be updated automatically

In case of any problem occured try to restart server and repeat previous steps. If issue still persists create `/kgen debug` link and contact us.


---

# 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://kzone.gitbook.io/docs/kgenerators/converting-databases.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.
