plugin.config 469 B

1234567891011121314151617181920212223
  1. [
  2. {emysql, [
  3. {pool, 4},
  4. {host, "localhost"},
  5. {port, 3306},
  6. {username, "root"},
  7. {password, "root"},
  8. {database, "emqtt"},
  9. {encoding, utf8}
  10. ]},
  11. {emqttd_plugin_mysql, [
  12. {users_table, auth_user},
  13. {acls_table, auth_acl},
  14. {field_mapper, [
  15. {username, username},
  16. {password, password, pbkdf2},
  17. {user_super, is_super_user},
  18. {acl_username, username},
  19. {acl_rw, rw},
  20. {acl_topic, topic}
  21. ]}
  22. ]}
  23. ].