Warning: MySQL server has gone away query: INSERT INTO watchdog (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (1, 'php', '%message in %file on line %line.', 'a:4:{s:6:\"%error\";s:12:\"user warning\";s:8:\"%message\";s:2339772:\"MySQL server has gone away\nquery: UPDATE batch SET token = 'cdbb5786c4572b68d748c885d88b8cef', batch = 'a:10:{s:4:\\"sets\\";a:2:{i:0;a:12:{s:7:\\"sandbox\\";a:0:{}s:7:\\"results\\";a:0:{}s:7:\\"success\\";b:0;s:10:\\"operations\\";a:1:{i:0;a:2:{i:0;s:20:\\"_locale_batch_import\\";i:1;a:1:{i:0;s:46:\\"sites/all/modules/lightbox2/translations/de.po\\";}}}s:5:\\"title\\";s:32:\\"Importing interface translations\\";s:12:\\"init_message\\";s:26:\\"Starting import&am in C:\xampp\htdocs\includes\database.mysqli.inc on line 128
Warning: MySQL server has gone away query: SELECT data, created, headers, expire, serialized FROM cache WHERE cid = 'theme_registry:pixture' in C:\xampp\htdocs\includes\database.mysqli.inc on line 128

Im getting this error now whenever im uploading a module on my drupal site and enabling it. I went through some of the solutions that were posted here but they are not helping.
For example, many posts said that go to mysql/bin/my.cnf and change the value of max_allowed_packet=64M. In my mysql/bin folder im not able to find any such file.
i dont know how to go ahead n its pretty urgent!