database dump and phpmyadmin.. [message #2775] |
Fri, 24 May 2002 17:43 |
Olliver
Messages: 443 Registered: March 2002
Karma: 0
|
Senior Member |
|
|
Hi, There are times when using phpmyadmin is not that wise...Today I inserted a database dump with just a size about 1,9megs, not that terrific actually. Using phpmyadmin the following happened: It kept on loading endlessly... the command "top" revealed that httpd was eating an average of 90-97% Cpu time. Even after 15 minutes nothing else happened but the hourglass turning in Mozilla I finally killed the process in order to avoid crashing the server. Just typing: $ mysql database -u uraccount -p < urdump.sql did the job in a few seconds. This way u will get a password prompt, but it has the advantage of not showing the password. I think the critical mass for phpmyadmin to handle is about 600-800k. anything beyond may still work, but it will take endless minutes to complete. I tested it with the following equipment: Apache 1.3.24, PHP 4.2.1, MySQL 3.23.49a and phpmyadmin 2.26 (most recent version). So use the command line whenever it may be reasonable, saves time, money and unpleasant emails from BOFHs --edit: oops flipped "2" and "3" in MySQL . corrected. bye Ken
[Updated on: Fri, 24 May 2002 23:32] Report message to a moderator
|
|
|
Re: database dump and phpmyadmin.. [message #2776 is a reply to message #2775] |
Sat, 25 May 2002 02:45 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Using PHP to import data in to MySQL will always be slower then just dumping it. However, in 10 minutes the forum's importer does about 400,000 MySQL inserts into tables with pretty big indexes, that is 80 megs of SQL data.
So, I'd say that phpmyadmin is just not very good code when it comes to speed.
FUDforum Core Developer
|
|
|
|
|
|
|
|
|
|
|