Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to start database plug-in #262

Open
wjmwjm000 opened this issue Mar 4, 2021 · 1 comment
Open

Failed to start database plug-in #262

wjmwjm000 opened this issue Mar 4, 2021 · 1 comment
Labels

Comments

@wjmwjm000
Copy link

{emqx_auth_mysql, {bad_return, {{emqx_auth_mysql_app,start,[normal,[]]}, {'EXIT', {{badmatch, {error, {shutdown, {failed_to_start_child,emqx_auth_mysql, {shutdown, {failed_to_start_child,worker_sup, {shutdown, {failed_to_start_child, {worker,1}, {1045,<<"28000">>, <<"Access denied for user ''@'localhost' (using password: NO)">>}}}}}}}}}, [{emqx_auth_mysql_app,start,2, [{file,"emqx_auth_mysql_app.erl"},{line,38}]}, {application_master,start_it_old,4, [{file,"application_master.erl"},{line,277}]}]}}}}}

@HJianBo
Copy link
Member

HJianBo commented Mar 8, 2021

"Access denied for user ''@'localhost' (using password: NO)"

You should check these configurations for MySQL authentication in etc/plugins/emqx_auth_mysql.conf:

## MySQL username.
##
## Value: String
auth.mysql.username = your-mysql-username

## MySQL password.
##
## Value: String
auth.mysql.password = your-mysql-password

## MySQL database.
##
## Value: String
auth.mysql.database = mqtt

@wwhai wwhai added the support label Mar 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants