I use PHP with the MYSQL database, as they are open and easy to use.
I get problems when performing insert and / or update from millions of rows one by one
while this operation is in progress, I received a MYSQL error:
'max_user_connections' active connections
what is the best way to solve this problem.
I do not want to use another database or language other than PHP.
connect_db(); $query = "insert into table(mobno,status,description,date,send_deltime,sms_id,msg,send_type) values('".$to."','".$status."','".$report."','','".$timewsha1."','".$smsID."','','".$type."')"; $result = mysql_query($query) or ("Query failed : " . mysql_error());
This request will be executed thousands of times.
and then the server will throw a connection error.
source share