I'm using the Category module, and wrote some code to bulk-add some container nodes for a ridiculously multi-tiered hierarchical site I'm working on. The code reads-in a CSV file & creates Category nodes with appropriate parent-child relationships. When I get up to node 422, I get a very long series of errors that look much like the following:
Warning: MySQL server has gone away query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (1, 'php', 'MySQL server has gone away\nquery: UPDATE cache SET data = 'a:4:{s:6:\\"tables\\";a:361:{s:4:\\"node\\";a:5:{s:4:\\"name\\";s:4:\\"node\\";s:8:\\"provider\\";s:8:\\"internal\\";s:6:\\"fields\\";a:7:{s:5:\\"title\\";a:6:{s:4:\\"name\\";s:11:\\"Node: Title\\";s:7:\\"handler\\";a:2:{s:28:\\"views_handler_field_nodelink\\";s:6:\\"Normal\\";s:38:\\"views_handler_field_nodelink_with_mark\\";s:17:\\"With updated mark\\";}s:6:\\"option\\";a:2:{s:5:\\"#type\\";s:6:\\"select\\";s:8:\\"#options\\";a:2:{s:4:\\& in E:\www\drupal\includes\database.mysql.inc on line 120
All of the errors reference the watchdog table, though the content differs slightly for each one. There are probably about 20 errors like this every time I try to view any page.