Ejabberd mysql connection

I am using ejabberd 17.01 in ubuntu server , and auth_method with LDAP. I configured for mysql there was no error starting ejabberd but still using embeded database mnesia. My config is ejabberd.yml . What must i do? Thanks

auth_method: ldap
ldap_servers: ["ladapServer"]

## Encryption of connection to LDAP servers:
## ldap_encrypt: none
## ldap_encrypt: tls
## Port to connect to on LDAP servers:
## ldap_port: 389
## ldap_port: 636
## LDAP manager:
ldap_rootdn: "CN=ldapInfo Admin,OU=Servisler,OU=Kullanicilar,OU=Sistem,OU=ZZ,DC=zz,DC=local"
## Password of LDAP manager:
ldap_password: "password"
## Search base of LDAP directory:
ldap_base: "DC=zz,DC=local"
## LDAP attribute that holds user ID:
ldap_uids: ["sAMAccountName"]
##   - "sAMAccountName": "%u"
## LDAP filter:
ldap_filter: "(memberOf=*)"

## MySQL server:

sql_type: mysql
sql_server: mysqlServer
sql_database: "ejabberd"
sql_username: "root"
sql_password: "password"

## If you want to specify the port:
sql_port: 3306

So, you have informed to

So, you have informed to ejabberd how to connect to your MySQL database. Now you must tell to ejabberd what modules you want to use MySQL instead of Mnesia.

For that, many modules support the db_type option. Use it like this:

  mod_mam:
    default: always
    db_type: sql
Syndicate content