I use PHP5 and MySQL, everything is fine until more than 9,000 petitions are sent to the MySQL server.
For example, I'm trying to make 10,000 inserts from a CSV file with 10,000 records (lines). When the loop is running, I got this error:
Unable to connect to MySQL server on '192.168.10.11' (99).
I wrote a little loop to make 10,000 select field_id from table where field_id = XX , and I got the same error.
My LAMP uses Debian Squeeze, PHP5, MySQL Server 5.1, Apache2
Important note: there are no errors using the MySQL Workbench or the MySQL CLI, this is only in a web environment.
This is my.conf
# # The MySQL database server configuration file. # # You can copy this to one of: # - "/etc/mysql/my.cnf" to set global options, # - "~/.my.cnf" to set user-specific options. # # One can use all long options that the program supports. # Run program with --help to get a list of available options and with # --print-defaults to see which it would actually understand and use. # # For explanations see # http:
php mysql
Vic abreu
source share