|
Transefering huge data from one table to another
|
|
08-12-2008, 10:26 PM
Post: #1
|
|||
|
|||
|
Transefering huge data from one table to another
Hi,
I was transferring data from one table of a database to a table in another database. Both databases are stored in MySQL server. But the query only execute around 2,5000 records and stops without any error. My first table contains around 64,000 records. Can any one suggest how I can transfer all the records without any interruption and inform me why the interruption is occurring? Thanks |
|||
|
08-12-2008, 10:27 PM
(This post was last modified: 08-12-2008 10:30 PM by daniel.)
Post: #2
|
|||
|
|||
|
RE: Transefering huge data from one table to another
How are you running the query? (PHP, mysql command line, phpMyAdmin, etc..)
|
|||
|
08-12-2008, 10:30 PM
Post: #3
|
|||
|
|||
|
RE: Transefering huge data from one table to another
I had written a PHP code to transfer the data.
PHP Code: 1. $Link1 = 'Connection to first DB'; |
|||
|
08-12-2008, 10:31 PM
Post: #4
|
|||
|
|||
|
RE: Transefering huge data from one table to another
Your script is probably timing out. Do you have access to run phpmyadmin?
|
|||
|
08-12-2008, 10:31 PM
Post: #5
|
|||
|
|||
|
RE: Transefering huge data from one table to another
I have access to run phpmyadmin, but when I transfered data I have to use base64_encode() and md5() functions. That is why I did not use phpmyadmin.
How can I fix the timeout? |
|||
|
08-12-2008, 10:35 PM
Post: #6
|
|||
|
|||
|
RE: Transefering huge data from one table to another
Process it in chunks, e.g. let the script process 100 entries at a time, and then call itself (with &start=100) using a meta refresh to do the next 100, etc.
Dirty, but it works, and you get to see how far it is in the process while it's busy. |
|||
|
« Next Oldest | Next Newest »
|




