birdie Posted April 15, 2006 Share Posted April 15, 2006 hi, i have a mysql database and a very large sql file (backup file). this file is around 226mb and i only need specific tables to be added again. i could edit the file using notepad but that takes far too long as it freezes almost every time i press the enter key.is there any easier methods and how would i then be able to upload the sql backup file quickly? Ever tryed uploading 220mb through a php upload system? not good.thanks for any help :-) Quote Link to comment https://forums.phpfreaks.com/topic/7485-big-problem/ Share on other sites More sharing options...
redbullmarky Posted April 15, 2006 Share Posted April 15, 2006 [!--quoteo(post=365096:date=Apr 15 2006, 04:49 PM:name=birdie)--][div class=\'quotetop\']QUOTE(birdie @ Apr 15 2006, 04:49 PM) [snapback]365096[/snapback][/div][div class=\'quotemain\'][!--quotec--]hi, i have a mysql database and a very large sql file (backup file). this file is around 226mb and i only need specific tables to be added again. i could edit the file using notepad but that takes far too long as it freezes almost every time i press the enter key.is there any easier methods and how would i then be able to upload the sql backup file quickly? Ever tryed uploading 220mb through a php upload system? not good.thanks for any help :-)[/quote]hmm not really had much experience with files so large, but you could probably achieve it by using the fopen, fread, fgets, etc functions to seek out the lines specifically to to with the tables you want and executing the queries one by one. Quote Link to comment https://forums.phpfreaks.com/topic/7485-big-problem/#findComment-27271 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.