fix plugin config
This commit is contained in:
parent
e93f4cf077
commit
aaf5c6b194
|
@ -1,11 +1,11 @@
|
||||||
## Overview
|
|
||||||
|
## Overview
|
||||||
|
|
||||||
Authentication with user table of MySQL database.
|
Authentication with user table of MySQL database.
|
||||||
|
|
||||||
## etc/plugin.config
|
## etc/plugin.config
|
||||||
|
|
||||||
```erlang
|
```
|
||||||
[
|
|
||||||
{emysql, [
|
{emysql, [
|
||||||
{pool, 4},
|
{pool, 4},
|
||||||
{host, "localhost"},
|
{host, "localhost"},
|
||||||
|
@ -24,7 +24,6 @@ Authentication with user table of MySQL database.
|
||||||
{password, password}
|
{password, password}
|
||||||
]}
|
]}
|
||||||
]}
|
]}
|
||||||
].
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Users Table(Demo)
|
## Users Table(Demo)
|
||||||
|
|
|
@ -1,18 +1,16 @@
|
||||||
[
|
{emysql, [
|
||||||
{emysql, [
|
{pool, 4},
|
||||||
{pool, 4},
|
{host, "localhost"},
|
||||||
{host, "localhost"},
|
{port, 3306},
|
||||||
{port, 3306},
|
{username, "root"},
|
||||||
{username, "root"},
|
{password, "public"},
|
||||||
{password, "public"},
|
{database, "mqtt"},
|
||||||
{database, "mqtt"},
|
{encoding, utf8}
|
||||||
{encoding, utf8}
|
]},
|
||||||
]},
|
{emqttd_auth_mysql, [
|
||||||
{emqttd_auth_mysql, [
|
{users_table, mqtt_users},
|
||||||
{users_table, mqtt_users},
|
{field_mapper, [
|
||||||
{field_mapper, [
|
{username, username},
|
||||||
{username, username},
|
{password, password, plain}
|
||||||
{password, password, plain}
|
]}
|
||||||
]}
|
]}
|
||||||
]}
|
|
||||||
].
|
|
||||||
|
|
Loading…
Reference in New Issue