Use
when MySQL inserts a large amount of data and needs to compare and duplicate Db($table)-> where($where)-> find();
In this case, an error will be reported: sqlstate [08004] [1040] too many connections
This is mainly due to too many database connections
resolvent:
Introduce DB class
use think\Db;
The query statement is changed to:
Db::table($table)-> where($where)-> find();
That’s it
Read More:
- PHP message: PHP Fatal error: Uncaught PDOException: SQLSTATE[08004] [1040] Too many connections
- In depth analysis of mysq exceeding the number of connections error 1040 (HY000): too many connections
- #An error is reported by the chart map component of renfast framework
- ERROR 1040 (08004): Too many connections
- Sorting out MySQL “too many connections” solutions
- [error handling] when logging into MySQL with CentOS command, an error 1045 (28000) is reported
- An error of 500 is reported when an item is assigned to a role
- When the mybatis field contains an expression, an error is reported when it is stored in the database
- An error 1064 is reported when pymysql accesses the image
- Pikachu vulnerability is installed in the shooting range, and an error is reported when connecting to the MySQL database
- zookeeper_ An error is reported when the exporter starts
- When the spring MVC project is running on idea, an error is reported when the controller is a null pointer
- Exception record. When eclipse starts, an error is reported when workspace is opened
- An error is reported about import Java. SQL. *; problem
- An error is reported when kettle connects Oracle database and MySQL database
- An error is reported when the less file is introduced into main.js
- The Vue project is packaged and deployed to tomcat, and an Error 404 is reported as soon as it is refreshed
- When using freemaker template to get values, an error is reported when the attribute is empty
- After Vue is packaged, a blank page appears, an error is reported in the resource request, and there is no error handling scheme
- An error is reported when an android phone visits the app webpage: net::ERR_PROXY_CONNECTION_FAILED