使用MySQL审计工具Audit
https://www.jianshu.com/p/a0e0aec3cb6f
注:下载地址:https://dl.bintray.com/mcafee/mysql-audit-plugin/
给用户授予有限的权限
REVOKE ALL PRIVILEGES, GRANT OPTION FROM user
grant select,insert,update,delete on *.* to sqluser@'%' identified by 'password' with grant option;