Jump to content

MySQL Database Import


Guest netrix

Recommended Posts

Guest netrix

I'm trying to import a large database using PHPMyAdmin which has a 2mb limit on the file sizes. Now I can just move the customers account to another host that will provide a CLI or one that will import it themselves but it got my wheels turning and I wondered if there was any easy way to import/split larger databases. The file is 7mb gzipped and 74mb uncompressed. I tried using the linux split command but it has absolutely no regard for completing SQL statements so it breaks it every time. I tried splitting by line but some of the lines are extremely large so I end up with some files that are 700K and some that are 6mb. Any suggestions would be appreciated!

Link to comment
Share on other sites

Guest netrix

Ok I'm running behind schedule a bit but I finally had a chance to try this out and wanted to say it worked great! Thanks for the suggestion.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...