Can't Restore A Db From 3 Mb Big/small Sql File

liunx

Guest
Hi!<br /><br />My vBulletin database became corrupt, and i tried to restore it - but no luck.<br /><br />I get : #1153 - Got a packet bigger than 'max_allowed_packet' <br /><br />It's till a small forum, actually not even "live" yet, i still test administration/moderation/etc.<br /><br />The SQL file is less than 3 MB<br /><br />I tried to split this sctipt, and found out that admin log table is bigger than 1 MB and can not be splitted.<br /><br /><br />May be someone from TCH could restore this DB for me,<br />but this is actually not what i need.<br />I need to be able to restore my DB myself any time of day and night if i need it,<br />without asking TCH support.<br /><br /><br />So my question: is it possible?<br />I didn't have a backup made with "Backup" function ( i mean the site /x/backup ) ,<br />just a backup made in phpMyAdmin ,<br />but would it really help it i had a default backup?<br /><br />I have a backup from other ISP ( created on the backup site of CP, very similar DB ),<br />i tried to restore it here, and it does not work ,<br />after the upload finishes, a "Restoring Database" message is displayed and nothing more happens.<br /><br /><br />I really need a long term solution for this problem,<br />because i can't accept not being able to restore(alone) a legit vBulletin database,<br />and it's even not a big forum....<br /><br /><br />Sincerely,<br />Soran<!--content-->
OK, i found out why restore via /frontend/x/backup/ didn't worked :<br />it was a minus sign ( - ) in the file name!<br />Anyway it's quite irritating that there is no appropriate warning / error message.<br /><br />But since my statement about restore via /frontend/x/backup/ was wrong, i apologize!<br /><br /><br />Still i have some questions...<br /><br />What is the file size limit for upload/restore via /frontend/x/backup/ ?<br />( for gzip file or the unzipped content inside ) <br /><br />Could it cause some trouble if i have few big files in the database? ( 5-10 mb )<br /><br />Is there some way to make the backup/restore application not to display the complete script in browser?<br />( CPU load is 100% for 1-2 minutes during the 2nd phase of restore on my computer... <br />( Athlon TB 1G, 512 ram )<br />and it's just a 3 mb database ( 500 kb gzip ), i'm afraid that my PC might just crash <br />if i have to restore a 100 mb database ( from 15 mb gzip ) one day... )<!--content-->
Hi, first sorry to have missed your first post.<br /><br /><img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/kicking.gif" style="vertical-align:middle" emoid=":dance:" border="0" alt="kicking.gif" /> Welcome to the Family <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/kicking.gif" style="vertical-align:middle" emoid=":dance:" border="0" alt="kicking.gif" /> <br /><br />and your new home!<br />I am sorry I have no experence with vBulletin script<br />so I can't help with the backup part of that script.<br /><br />But to just back up just your database<br />goto cpanel > backup<br />and click on the link for that database to download a compressed file<br />that you can upload in the same place later.<br />these files should be smaller that what your forum backup will be<br />and should upload with less trouble.<br /><br />As to upload limits, again I am not familiar with vBulletin<br />but with cpanel > backup I don't think you would have any trouble with a large datatbase.<br /><br />I will move this to scripting,<br />and maybe someone else here uses that script<br />and can help.<br /><br />We really are like family here.<br />So if you need anything,<br />just ask your new family!<br />We love to help <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /><!--content-->
Hi Don!<br /><br />Thank you for your answer and a warm welcome ^_^<br /><br /><br />Anyway the upload limit is not vBulletin related,<br />i'm just asking about the limits of restore functionality in general.<br /><br /><br />Basicly i just would like to know what is the size of the biggest databases<br />which you or other people here restore via /frontend/x/backup/<br />( Backup link in CPanel )<br /><br /><br />Also, could i run into some troble during resore via /frontend/x/backup/<br />if there are some very long INSERT's<br />( for example if a big file is stored in the database, like 5-10 mb or even bigger ),<br />is there any limit for the size of a single INSERT?<br /><br /><br />The 3rd question is also not about script but the same /backup/ page in CPanel<br />( or accessable via CPanel ) -<br />on restore the complete code of the backup is displayed ( at least by default ),<br />i just would like to know if there is any way around<br />so it would not be displayed.<br />By the way, it parses HTML tags, so that i see many input boxes and alike<br />( since some tables in the database contain HTML code ).<br />I'm just afraid what happens if i the database is much bigger,<br />the browser (or even Windows) might just crash<br />trying to display a site that's 100-200 mb big<br />( while gzip backup is might be just 15-40 mb )<!--content-->
Hmm I think TCH-Mike might be able to comment <br />on the size of this forums backup, it may give you an idea of any limits.<br /><br />AS to the restore in cpanel<br />I don't think you can change the display after.<br />Its just displaying it as it is restored, its not parsing it.<!--content-->
Not sure if it should be called parsing, <br />but here is an example of what i see in my browser during/after restore:<br /><img src="http://www.mahou-yume.net/images/tch/restore1.gif" border="0" class="linked-image" /><br /><br />Restore ( upload not included ) took about 3:30<br />( may be part of this time was used just for building the site to display after resore ) <br />and during this time my poor athlon tb 1G was at 100%,<br />so i try to figure out what happens if i upload not 3 mb db ( 500 kb gzip ),<br />but a 100 mb db ( 15-20 mb gzip )<!--content-->
For a database the size you mention it would be best to upload the file to your root directory of your site and submit a Help Desk ticket asking to have the data imported into an empty database you have created. We can then import the data on the server when loads are low and prevent any problems.<!--content-->
<!--QuoteBegin-TCH-Rick+Dec 30 2004, 05:18 PM--><div class='quotetop'>QUOTE(TCH-Rick @ Dec 30 2004, 05:18 PM)</div><div class='quotemain'><!--QuoteEBegin-->For a database the size you mention it would be best to upload the file to your root directory of your site and submit a Help Desk ticket asking to have the data imported into an empty database you have created. We can then import the data on the server when loads are low and prevent any problems.<br /><div align="right"><a href="http://www.totalchoicehosting.com/forums/index.php?act=findpost&pid=105873"><img src='http://www.totalchoicehosting.com/forums/style_images/1/post_snapback.gif' alt='*' border='0' /></a></div><!--QuoteEnd--></div><!--QuoteEEnd-->Well... if i ever would need to restore a database<br />( i do hope that it will not happen often ),<br />it will be an emergency situation, thus i just wouldn't have the time to ask support to restore it.<br />( no matter how fast the support is, it still costs additional time )<br />If i need to restore a DB, it probably means that my forum is down, and i would want to bring it back ASAP.<br />So i wouldn't be really happy to see asking support in this case<br />as planed solution for restore.<br />I wouldn't like to test the patience of my forum members,<br />because i know how it feels when my favorite forum is down ( horrible <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/sick.gif" style="vertical-align:middle" emoid=":sick:" border="0" alt="sick.gif" /> <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/ph34r.gif" style="vertical-align:middle" emoid=":ph34r:" border="0" alt="ph34r.gif" /> <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/unsure.gif" style="vertical-align:middle" emoid=":unsure:" border="0" alt="unsure.gif" /> <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/wallbash.gif" style="vertical-align:middle" emoid=":wallbash:" border="0" alt="wallbash.gif" /> / i miss the "cry" smiley )<!--content-->
 
Top