/etc/../horizon/../horizon.conf
In the [database] section, configure database access:
[database]
[database] ... connection = mysql+pymysql://../horizon:../HORIZON_DBPASS@controller/../horizon