Após fazer o código igual da aula:
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class TestaConexao {
public static void main(String[] args) throws SQLException {
Connection connection = DriverManager.getConnection(
"jdbc:mysql://localhost/loja_virtual", "root", "root");
connection.close();
}
}
Estou recebendo essa exceção:
Exception in thread "main" java.sql.SQLException: The server time zone value 'Hora oficial do Brasil' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support.