Access denied for user '密码'@'192.18.0.0' (using password: YES)

Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.6:generate (default-cli) on project industry-invoice: 
Access denied for user '密码'@'192.18.0.0' (using password: YES)

这是因为当前用户没有访问mysql的权限导致的在mysql中执行:grant all privileges on *.* to root@'%' identified by 'cloudera;

就可以访问了。

如果是在公司给的数据库中,就劝你换成本地的数据库.

posted @ 2019-10-22 19:58  King-DA  阅读(1370)  评论(0编辑  收藏  举报