You are here: Re: How to import large MySQL data dump using PHP? « PHP Programming Language « IT news, forums, messages
Re: How to import large MySQL data dump using PHP?

Posted by pwiegers@gmail.com on 12/31/06 15:34

Brian Huether schreef:

> My webhost does not give me shell access. Normally, I use this sort of
> command on my local machine:
>
> c:\data> c:\mysql\bin\mysql -uroot -pxxxxx db < file.sql
>
> My webhost gives me PhpMyAdmin access, but I can never use that successfully
> with large files. The sql file I need to import is 15MB.

This is a tricky one. I tried it myself, and only succeded by splitting
the large dump by hand, using a editor. Then you can upload it by php
myadmin.

I used this command:

mysqldump -uuser -p database --compatible=mysql323
--set-variable=net_buffer_length=16384 > totaaldump20061027

to get a format that is easily editable by hand...

It worked for me.. if you find a better solution, I'm all ears....

Paul

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация