Eu fiz como vc disse e só troquei o connector do mysql, porem ainda tem alguns erros, vou colar uma parte aqui, não da pra colar tudo por causa do limite de palavras e pq são muitos
ERROR: HHH000319: Could not get database metadata
java.sql.SQLSyntaxErrorException: Unknown database 'contas'
ago 22, 2018 2:27:35 PM org.hibernate.tool.hbm2ddl.SchemaUpdate execute
ERROR: HHH000299: Could not complete schema update
java.sql.SQLSyntaxErrorException: Unknown database 'contas'
Wed Aug 22 14:27:35 BRT 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
ago 22, 2018 2:27:35 PM org.hibernate.engine.jdbc.spi.SqlExceptionHelper logExceptions
WARN: SQL Error: 1049, SQLState: 42000
ago 22, 2018 2:27:35 PM org.hibernate.engine.jdbc.spi.SqlExceptionHelper logExceptions
ERROR: Unknown database 'contas'
Exception in thread "main" javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: Could not open connection
Caused by: java.sql.SQLSyntaxErrorException: Unknown database 'contas'