Comments (5)
@Erylee Ofcourse, replacement should work
from emqx-auth-mysql.
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8' at line 8
fix bug as follows:
CREATE TABLE auth_user
(
id
int(11) NOT NULL AUTO_INCREMENT,
password
varchar(128) NOT NULL,
is_superuser
tinyint(1) NOT NULL,
username
varchar(30) NOT NULL,
PRIMARY KEY (id
)
UNIQUE KEY username
(username
)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8
CREATE TABLE auth_acl
(
id
int(11) NOT NULL AUTO_INCREMENT,
topic
varchar(100) NOT NULL,
username
varchar(30) NOT NULL,
rw
int(11) NOT NULL,
PRIMARY KEY (id
)
) ENGINE=InnoDB AUTO_INCREMENT=66 DEFAULT CHARSET=utf8
from emqx-auth-mysql.
@lsxredrain , ok, updated
from emqx-auth-mysql.
[
{emysql, [
{pool, 4},
{host, "localhost"},
{port, 3306},
{username, "root"},
{password, "root"},
{database, "emqtt"},
{encoding, utf8}
]},
{emqttd_plugin_mysql, [
{users_table, auth_user}, %% here "users_table" should modified "to user_table"
{acls_table, auth_acl},
{field_mapper, [
{username, username},
{password, password, pbkdf2},
{user_super, is_super_user},
{acl_username, username},
{acl_rw, rw},
{acl_topic, topic}
]}
]}
].
in emqttd_auth_mysql.erl file ,use “user_tables"
{ok, #state{user_table = proplists:get_value(user_table, Opts, auth_user),
but in emqttd_auth_acl.erl file, use "“users_tables"
user_table = proplists:get_value(users_table, Opts, auth_user),
from emqx-auth-mysql.
@lsxredrain updated
from emqx-auth-mysql.
Related Issues (20)
- Load plugin emqx_auth_mysql error: HOT 1
- Load emqx-auth-mysql failed HOT 2
- I having struggle writing a query HOT 3
- can't load emqx_auth_mysql HOT 2
- How to add user HOT 1
- mysql8 错误 HOT 1
- plugin can not be loaded
- Should consider the situation that username or password is undefined HOT 1
- IP address in the auth HOT 7
- username and client_id is case sensitive? HOT 3
- Failed to execute {fun emqx_acl_mysql:check_acl/5 HOT 5
- How to use TLS connection with this plugin? HOT 2
- Failed to start database plug-in HOT 1
- 怎样在开源emqx HOT 1
- 插件在windows下如何编译
- ===> Error building application emqx: No project builder is configured for type mix
- connect to mysql server timeout
- Cannot connect to RDS Proxy
- Does the plugin support to connect a mysql server with ssl?
- Anyway to see debug sql in the logs? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emqx-auth-mysql.