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;

就可以访问了。

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

上一篇:MYSQL“错误代码#1045 Access denied for user 'root'@'********8' (using password:YES)”


下一篇:docker Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/