Hi, I am using Java with MySql. I took some hosting services x, in that I deployed my Java .war file, it works for several days, since after 2 days I get some error that
java.sql.SQLException: null, message from the server: "Host" X-host "is blocked due to many connection errors, unlock" mysqladmin flush-hosts ".
I used a regular database connection as well as a connection pool.
My code is:
Class.forName("com.mysql.jdbc.Driver");
con = DriverManager.getConnection("jdbc:mysql://IP Address:3306/DBName?user=xxxxx&password=YYYYYYY");
..
Please give a decision ..
source
share