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;
就可以訪問了。
如果是在公司給的數據庫中,就勸你換成本地的數據庫.