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;

就可以访问了。

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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM