Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

ERROR: Access denied for user 'root'@'localhost' (using password: YES)

<properties>
            <property name="javax.persistence.jdbc.driver" value="com.mysql.jdbc.Driver" />
// nome em maria db ta root
            <property name="javax.persistence.jdbc.user" value="root" />
// senha ta 123 aqui ta passando os dados certo          
  <property name="javax.persistence.jdbc.password" value="123" />
          <property name="javax.persistence.jdbc.url" value="jdbc:mysql://localhost:3307/banco_jpa" />
            <property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5InnoDBDialect" />
            <property name="hibernate.show_sql" value="true" />
            <property name="hibernate.format_sql" value="true" />
            <property name="hibernate.hbm2ddl.auto" value="update" />

        </properties>



// nao sei pq ta aparecendo esse erro pós o nome e senha estao ok reconfigurei 5 vezes coloquei em portas diferentes e nada ainda...

ERROR: Access denied for user 'root'@'localhost' (using password: YES)
Exception in thread "main" org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]

Caused by: org.hibernate.exception.GenericJDBCException: Error calling Driver#connect
    at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:47)

Caused by: java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)
    at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:129)
1 resposta
solução!

Olá Daniel

Tenta usar esse comando: GRANT ALL PRIVILEGES ON . TO 'root'@'localhost' IDENTIFIED BY '%password%' WITH GRANT OPTION;

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software