fix plugin config

This commit is contained in:
Feng Lee 2015-05-12 22:41:16 +08:00
parent e93f4cf077
commit aaf5c6b194
2 changed files with 19 additions and 22 deletions

View File

@ -1,11 +1,11 @@
## Overview
Authentication with user table of MySQL database.
## etc/plugin.config
```erlang
[
```
{emysql, [
{pool, 4},
{host, "localhost"},
@ -24,7 +24,6 @@ Authentication with user table of MySQL database.
{password, password}
]}
]}
].
```
## Users Table(Demo)

View File

@ -1,5 +1,4 @@
[
{emysql, [
{emysql, [
{pool, 4},
{host, "localhost"},
{port, 3306},
@ -7,12 +6,11 @@
{password, "public"},
{database, "mqtt"},
{encoding, utf8}
]},
{emqttd_auth_mysql, [
]},
{emqttd_auth_mysql, [
{users_table, mqtt_users},
{field_mapper, [
{username, username},
{password, password, plain}
]}
]}
].
]}