Information troubleshooting
# Check the maximum number of connection errors
show global variables like 'max_connect_errors';
# Check the connection IP
select * from performance_schema.host_cache
# Flush the database IP cache
flush hosts
# View connections
SELECT substring_index(host, ':',1) AS host_name, state, count(*) FROM information_schema.processlist GROUP BY state, host_name;
Solution: enter the database and use the admin permission account
1. Set the value of the variable max_connection_errors to a larger value
set global max_connect_errors=1500;
2. Execute the command to use flush hosts
3、Change the value of the system variable so that MySQL server does not record host cache information (not recommended) e.g. set global host_cache_size=0;
Read More:
- [Solved] init datasource error, url: jdbc:mysql://localhost:3306/test
- [Solved] Springboot connect MySQL error: errorcode 0, state 08s01
- [Solved] Cannot find class: com.mysql.jdbc.Driver
- [Solved] Caused by: com.mysql.cj.exceptions.InvalidConnectionAttributeException
- JAVA Connect MYSQL Error: Path does not chain with any of the trust anchors
- [Solved] com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure error
- org.hibernate.exception.SQLGrammarException: could not extract ResultSet, Resolve MySQL 5.7.5 or above GROUP_BY is not supported
- How to Solve nacos Startup Error and Connect to MYSQL
- [Solved] Tomcat Server Error: java.lang.NullPointerException Csonsole Error ClassNotFoundException: com.mysql.jdbc.Driver
- Error querying database. Cause: java.sql.SQLSyntaxErrorException: Expression #2 of SELECT list is no
- [Solved] Kafka Error: Discovered coordinator XXXXX:9092 (id: 2147483647 rack: null) for group itstyle.
- Configuration of springboot + Druid connection pool
- [Solved] springboot Project Run Error: HikariPool-1 – Exception during pool initialization.
- Redis: DENIED Redis is running in protected mode [How to Solve]
- How to Solve c3p0 error (Cause & Solution)
- Solution to javax.naming.noinitialcontextexception error
- [Solved] IO exception: NL exception was generated
- [Solved] java.sql.SQLException: Unknown system variable cache query size
- [Solved] Git Clone Error: “error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length …
- IDEA Error: ERROR 16720 —[ restartMain] o.a.coyote. http11.Http119Protocol: Failed to sta