# Generating QuickFIX Databases

- MySQL Database
- MSSQL Database
- PostgreSQL Database

### MySQL Database

First, make sure you have compiled QuickFIX with MySQL support. If you have not done this, go back to the build instructions for your system and follow the instructions. Also, make sure you have installed MySQL and have the deamon running.

Everything needed to generate your MySQL database is in the src/sql/mysql directory. Here, there are the script and batch files create.sh and create.bat. You must pass in a mysql user with permissions to create a new database.

`./create.sh mysql`

`create.bat mysql`

### MSSQL Database

First, make sure you have compiled QuickFIX with MSSQL support. If you have not done this, go back to the build instructions for your system and follow the instructions. Also, make sure you have installed MSSQL and have the deamon running.

Everything needed to generate your MSSQL database is in the src/sql/mssql directory. Here, there is the batch file create.bat. Pass in a user with permissions to create a new database.

`create.bat sa`

### PostgreSQL Database

First, make sure you have compiled QuickFIX with PostgreSQL support. If you have not done this, go back to the build instructions for your system and follow the instructions. Also, make sure you have installed PostgreSQL and have the deamon running.

Everything needed to generate your PostgreSQL database is in the src/sql/postgresql directory. Here, there are the script and batch files create.sh and create.bat. You must pass in a postgresql user with permissions to create a new database.

`./create.sh postgres`

`create.bat postgres`