java.sql.SQLException: Data source rejected establishment of connection, message from server: "Host 'localhost' is blocked because of many connection errors. Unblock with 'mysqladmin flush-hosts'"
Estou utilizando este script:
<%@ page import="java.sql.*" %>
<%
Connection connection = null;
try
{
// Carregando o JDBC Driver
String driverName = "org.gjt.mm.mysql.Driver"; // MySQL MM JDBC driver
Class.forName(driverName).newInstance();
// Criando a conexão com o Banco de Dados
String serverName = "localhost";
String mydatabase = "bancoteste";
String url = "jdbc:mysql://" + serverName + "/" + mydatabase; // a JDBC url
String username = "usuario";
String password = "teste123";
connection = DriverManager.getConnection(url, username, password);
} catch (ClassNotFoundException e)
{
//Driver não encontrado
out.println("O driver expecificado não foi encontrado.");
}
catch (SQLException e)
{
out.println(e);
}
%>
Alguém sabe o que está acontecendo?
Agradeço desde já.