MySQL

The WhatsApp Business API client requires MySQL to store data.

Environment Variables

You can configure the database settings by setting the following environment variables in the db.env file when installing the WhatsApp Business API client. These environment variables will be used by the Coreapp and the Webapp when connecting to the MySQL database.

Database Setting Environment Variable

database_engine

WA_DB_ENGINE

hostname

WA_DB_HOSTNAME

port

WA_DB_PORT

username

WA_DB_USERNAME

password

WA_DB_PASSWORD

database_name_prefix

WA_DB_NAME_PREFIX

WA_DB_NAME_PREFIX can be used to prefix all databases created when WhatsApp Business API client is installed. It can be used to run multiple sets of WhatsApp Business API databases on the same database host.