rhijaen Posted October 29, 2008 Share Posted October 29, 2008 I'm getting this error when trying to import a sql file.. ERROR 2006 (HY000) at line 1: MySQL server has gone away I opened my.cnf and changed the max allowed bytes to 16M even though my file is only about 1M and it still didn't work.. What could the problem be? Here's the first few lines of my .sql INSERT INTO items (`IDString`,`IDNumber`,`Name`,`SkinID`,`ShopType`,`ItemType`,`EquipPosition`,`req_Strength`,`req_Endurance`,`req_Agility`,`req_Wisdom`,`req_Intelligence`,`req_Attack`,`DamageFormula`,`Exhaust`,`ArmorClass`,`Dodge`,`b_int`,`b_end`,`b_str`,`b_wis`,`b_agi`,`b_luck`,`b_attack`,`b_dodge`,`b_damage`,`b_radiance`,`b_r_air`,`b_r_fire`,`b_r_water`,`b_r_earth`,`b_r_light`,`b_r_dark`,`b_p_air`,`b_p_water`,`b_p_fire`,`b_p_earth`,`b_p_light`,`b_p_dark`,`b_StunBlow`,`b_PowerfulBlow`,`b_FirstAid`,`b_Parry`,`b_Meditate`,`b_Hide`,`b_Rob`,`b_Sneak`,`b_Search`,`b_PickLock`,`b_ArmorPenetration`,`b_Peek`,`b_RapidHealing`,`b_Archery`,`Radius`,`Charges`,`JunkAtRemort`,`CannotHide`,`CannotEquip`,`CannotJunk`,`CannotRob`,`CannotDrop`,`IsUnique`,`CanBeSummoned`,`IsRangedWeapon`,`Unlimited`,`Location`,`ReSell`,`Weight`) VALUES ('Steel Chest',41884,'Steel Chest',262,'armor','armor','body',0,0,0,0,0,0,'0','0',0,0,'0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0',0,0,false,true,true,true,true,true,true,false,false,true,'Nowhere',0,0), ('Jailer Axe',41886,'Jailer Axe',122,'weapon','weapon','right-handed',0,0,0,0,0,0,'1','0',0,0,'0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0',0,-1,false,true,false,true,true,true,false,false,false,true,'Nowhere',0,0), ('Jail Sign',41887,'Jail Sign',360,'sign','junk','none',0,0,0,0,0,0,'0','0',0,0,'0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0',0,0,false,true,true,true,true,true,false,true,false,true,'Arakas',0,0), ('GM 1 HAND STAFF',41897,'GM 1 HAND STAFF',295,'weapon','junk','right-handed',0,0,0,0,0,0,'0','0',0,0,'0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0',0,0,false,true,true,true,true,true,false,true,false,true,'Arakas',0,0), ('Sign of Teleport',41901,'Sign of Teleport',361,'sign','armor','none',0,0,0,0,0,0,'0','0',0,0,'0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0',0,-1,false,true,true,true,true,true,false,true,false,true,'GM Item (reserved)',0,0), ('Dantalir chest',41903,'Dantalir chest',20,'container','junk','none',0,0,0,0,0,0,'0','0',0,0,'0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0',0,0,false,true,true,false,false,false,false,false,false,false,'Stoneheim',0,10000), ('Oracle bonus chest 1',41905,'Oracle bonus chest 1',41,'container','junk','none',0,0,0,0,0,0,'0','0',0,0,'0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0',0,0,false,true,true,false,false,false,false,false,false,false,'Oracle zone',0,0), ('Oracle bonus chest 2',41906,'Oracle bonus chest 2',41,'container','junk','none',0,0,0,0,0,0,'0','0',0,0,'0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0',0,0,false,true,true,false,false,false,false,false,false,false,'Oracle zone',0,0), ('Oracle bonus chest 3',41907,'Oracle bonus chest 3',41,'container','junk','none',0,0,0,0,0,0,'0','0',0,0,'0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0',0,0,false,true,true,false,false,false,false,false,false,false,'Oracle zone',0,0), ('Oracle bonus chest 4',41908,'Oracle bonus chest 4',41,'container','junk','none',0,0,0,0,0,0,'0','0',0,0,'0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0',0,0,false,true,true,false,false,false,false,false,false,false,'Oracle zone',0,0), ('Shiny silver key',41910,'Shiny silver key',30,'potion','junk','none',0,0,0,0,0,0,'0','0',0,0,'0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0',0,-1,true,false,false,false,true,true,false,true,false,false,'Oracle zone',0,0), ('Temple door tester',41911,'Temple door tester',189,'standard','junk','none',0,0,0,0,0,0,'0','0',0,0,'0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0',0,-1,false,true,true,false,false,false,false,false,false,false,'Nowhere',0,0), ('Temple door tester 2',41912,'Temple door tester 2',41,'container','junk','none',0,0,0,0,0,0,'0','0',0,0,'0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0',0,-1,false,true,true,false,false,false,false,false,false,false,'Nowhere',0,0), ('Winterbottom Sign',41914,'Winterbottom Sign',348,'sign','potion','none',0,0,0,0,0,0,'0','0',0,0,'0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0',0,0,false,true,true,false,false,false,false,true,false,true,'Arakas',0,0), ('Orealm1stChestEntryLever',41915,'Orealm1stChestEntryLever',189,'standard','armor','none',0,0,0,0,0,0,'0','0',0,0,'0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0',0,-1,false,true,true,false,false,false,false,true,false,true,'Stoneheim',0,0), Quote Link to comment https://forums.phpfreaks.com/topic/130509-solved-error-2006-hy000-at-line-1-mysql-server-has-gone-away/ Share on other sites More sharing options...
xtopolis Posted October 29, 2008 Share Posted October 29, 2008 Did you restart the mysql server when you edited the .cnf? Does the query end correctly? with ) not ), An alternative would be to segment your statement into halves until it takes it. Quote Link to comment https://forums.phpfreaks.com/topic/130509-solved-error-2006-hy000-at-line-1-mysql-server-has-gone-away/#findComment-677070 Share on other sites More sharing options...
rhijaen Posted October 29, 2008 Author Share Posted October 29, 2008 I forgot to restart..works perfectly! Thanks Quote Link to comment https://forums.phpfreaks.com/topic/130509-solved-error-2006-hy000-at-line-1-mysql-server-has-gone-away/#findComment-677077 Share on other sites More sharing options...
xtopolis Posted October 29, 2008 Share Posted October 29, 2008 I'm 2 for 2 on you lol Quote Link to comment https://forums.phpfreaks.com/topic/130509-solved-error-2006-hy000-at-line-1-mysql-server-has-gone-away/#findComment-677091 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.