2 Replies Latest reply on May 11, 2017 7:35 PM by Gerry Matte

    jpa-generate-entities-from-tables   can not connect to mysql database

    Gerry Matte Apprentice

      With forge 3.6.1.Final, it seems that I have an error in my command.  Either I have an incorrect parameter name or the parameter sequence is incorrect for :

      jpa-generate-entities-from-tables --jdbc-url jdbc:mysql:///finance?useSSL=false --user-name xxxxx -user-password yyyyy --save-user-password --verify-connection --hibernate-dialect org.hibernate.dialect.MySQL5InnoDBDialect --driver-class com.mysql.jdbc.Driver --driver-location C:/s/jclasses/drivers/mysql.jar --database-schema finance --database-catalog finance --database-tables *

       

      The response I get is:

      ***ERROR*** Could not connect to database: Access denied for user 'xxxxx'@'localhost' (using password: NO)

       

      both the user name and the password work fine from a normal java program.

       

      Anyone able/willing to help ?

      (thanks in advance)