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

时间:2023-03-09 15:23:55
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;

就可以访问了。

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