{"action":"created","issue":{"url":"https://api.github.com/repos/emqtt/emqttd/issues/316","labels_url":"https://api.github.com/repos/emqtt/emqttd/issues/316/labels{/name}","comments_url":"https://api.github.com/repos/emqtt/emqttd/issues/316/comments","events_url":"https://api.github.com/repos/emqtt/emqttd/issues/316/events","html_url":"https://github.com/emqtt/emqttd/issues/316","id":108350508,"number":316,"title":"load mysql plugin","user":{"login":"grimmlink","id":3241292,"avatar_url":"https://avatars.githubusercontent.com/u/3241292?v=3","gravatar_id":"","url":"https://api.github.com/users/grimmlink","html_url":"https://github.com/grimmlink","followers_url":"https://api.github.com/users/grimmlink/followers","following_url":"https://api.github.com/users/grimmlink/following{/other_user}","gists_url":"https://api.github.com/users/grimmlink/gists{/gist_id}","starred_url":"https://api.github.com/users/grimmlink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grimmlink/subscriptions","organizations_url":"https://api.github.com/users/grimmlink/orgs","repos_url":"https://api.github.com/users/grimmlink/repos","events_url":"https://api.github.com/users/grimmlink/events{/privacy}","received_events_url":"https://api.github.com/users/grimmlink/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-25T15:43:23Z","updated_at":"2015-09-25T18:48:44Z","closed_at":null,"body":"Hi,\r\n\r\nI checkout last version from github, plus mysql plugin\r\nlaunched `make` and `make dist` without problem\r\n\r\nbut when i try to load mysql plugin i get : \r\n```\r\n$ ./bin/emqttd_ctl plugins load emqttd_plugin_mysql\r\nload plugin error: {emysql,{\"no such file or directory\",\"emysql.app\"}}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/emqtt/emqttd/issues/comments/143319603","html_url":"https://github.com/emqtt/emqttd/issues/316#issuecomment-143319603","issue_url":"https://api.github.com/repos/emqtt/emqttd/issues/316","id":143319603,"user":{"login":"grimmlink","id":3241292,"avatar_url":"https://avatars.githubusercontent.com/u/3241292?v=3","gravatar_id":"","url":"https://api.github.com/users/grimmlink","html_url":"https://github.com/grimmlink","followers_url":"https://api.github.com/users/grimmlink/followers","following_url":"https://api.github.com/users/grimmlink/following{/other_user}","gists_url":"https://api.github.com/users/grimmlink/gists{/gist_id}","starred_url":"https://api.github.com/users/grimmlink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grimmlink/subscriptions","organizations_url":"https://api.github.com/users/grimmlink/orgs","repos_url":"https://api.github.com/users/grimmlink/repos","events_url":"https://api.github.com/users/grimmlink/events{/privacy}","received_events_url":"https://api.github.com/users/grimmlink/received_events","type":"User","site_admin":false},"created_at":"2015-09-25T18:48:44Z","updated_at":"2015-09-25T18:48:44Z","body":"alright, plugin is working now, but seems it fails sometimes : \r\n\r\n```\r\n20:46:57.539 <0.326.0> [info] Connect from 91.121.177.189:56305 -> 91.121.177.189:1883\r\n20:46:57.539 <0.326.0> [info] RECV from gfremont@91.121.177.189:56305: CONNECT(Qos=0, Retain=false, Dup=false, ClientId=gfremont, ProtoName=MQIsdp, ProtoVsn=3, CleanSess=true, KeepAlive=60, Username=guillaume, Password=******)\r\n20:46:57.540 <0.326.0> [info] SEND to gfremont@91.121.177.189:56305: CONNACK(Qos=0, Retain=false, Dup=false, AckFlags=0, RetainCode=0)\r\n20:46:57.540 <0.326.0> [info] RECV from gfremont@91.121.177.189:56305: SUBSCRIBE(Qos=1, Retain=false, Dup=false, PacketId=1, TopicTable=[{<<\"blabla\">>,0}])\r\n20:46:57.541 <0.326.0> [info] Client(91.121.177.189:56305) terminated, reason: {function_clause,[{emqttd_acl_mysql,who,[<<\"91.121.177.189\">>,<<\"guillaume\">>,<<\"gfremont\">>],[{file,\"src/emqttd_acl_mysql.erl\"},{line,92}]},{emqttd_acl_mysql,compile,2,[{file,\"src/emqttd_acl_mysql.erl\"},{line,88}]},{emqttd_acl_mysql,check_acl,2,[{file,\"src/emqttd_acl_mysql.erl\"},{line,54}]},{emqttd_access_control,check_acl,4,[{file,\"src/emqttd_access_control.erl\"},{line,104}]},{emqttd_protocol,'-handle/2-lc$^0/1-0-',2,[{file,\"src/emqttd_protocol.erl\"},{line,238}]},{emqttd_protocol,handle,2,[{file,\"src/emqttd_protocol.erl\"},{line,238}]},{emqttd_client,received,2,[{file,\"src/emqttd_client.erl\"},{line,206}]},{gen_server,handle_msg,5,[{file,\"gen_server.erl\"},{line,599}]}]}\r\n20:46:57.541 <0.326.0> [info] Client gfremont@91.121.177.189:56305: shutdown {function_clause,[{emqttd_acl_mysql,who,[<<\"91.121.177.189\">>,<<\"guillaume\">>,<<\"gfremont\">>],[{file,\"src/emqttd_acl_mysql.erl\"},{line,92}]},{emqttd_acl_mysql,compile,2,[{file,\"src/emqttd_acl_mysql.erl\"},{line,88}]},{emqttd_acl_mysql,check_acl,2,[{file,\"src/emqttd_acl_mysql.erl\"},{line,54}]},{emqttd_access_control,check_acl,4,[{file,\"src/emqttd_access_control.erl\"},{line,104}]},{emqttd_protocol,'-handle/2-lc$^0/1-0-',2,[{file,\"src/emqttd_protocol.erl\"},{line,238}]},{emqttd_protocol,handle,2,[{file,\"src/emqttd_protocol.erl\"},{line,238}]},{emqttd_client,received,2,[{file,\"src/emqttd_client.erl\"},{line,206}]},{gen_server,handle_msg,5,[{file,\"gen_server.erl\"},{line,599}]}]}\r\n```\r\n\r\nmy user:\r\n![image](https://cloud.githubusercontent.com/assets/3241292/10109330/90393e6e-63c6-11e5-86fe-c29080ea7858.png)\r\n\r\n\r\nmy ACL:\r\n![image](https://cloud.githubusercontent.com/assets/3241292/10109318/810353f8-63c6-11e5-9ae8-91e5a58e9d3b.png)\r\n"}}