plugin.config 347 B

123456789101112131415161718
  1. [
  2. {emysql, [
  3. {pool, 4},
  4. {host, "localhost"},
  5. {port, 3306},
  6. {username, "root"},
  7. {password, "public"},
  8. {database, "mqtt"},
  9. {encoding, utf8}
  10. ]},
  11. {emqttd_auth_mysql, [
  12. {users_table, mqtt_users},
  13. {field_mapper, [
  14. {username, username},
  15. {password, password, plain}
  16. ]}
  17. ]}
  18. ].