Please, you should follow this guide, but changing WordPress for the application that you want.
The command that I posted in the below answer only refers to the initialization of the database, a small section of the guide that you should follow. You must have a database previously installed, you can download MySQL here and you can find the information you need in our documentation.
Some tips to follow this guide:
$ is the prompt of your shell, it is not a command.
installdir refer to the place where you installed the application, server, databaseClient, etc.
mysql> is the prompt indicating that you're inside of mysql-client.
- I recommend you run the commands one by one, not together.
Carlos R. Hernández