dbTalk Databases Forums  

copy a table from local to remote

comp.databases.mysql comp.databases.mysql


Discuss copy a table from local to remote in the comp.databases.mysql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Carla
 
Posts: n/a

Default copy a table from local to remote - 05-06-2008 , 10:22 AM






Hi guys, I've created a table in my local database and filled it with a
great amount of data (too much!) and now I need to insert the same data
on my website database. What a stressful operation! :-/
Do you know some way to speed up the data filling? Any ideas?
Is there a query to copy directly a table content from local db to
remote one? Or to save-export the local table content in a file and than
load-import this file from remote db?

Thanks.

Carla
(from ITALY)

Reply With Quote
  #2  
Old   
Captain Paralytic
 
Posts: n/a

Default Re: copy a table from local to remote - 05-06-2008 , 10:55 AM






On 6 May, 16:22, Carla <carlarendine6... (AT) tin (DOT) it> wrote:
Quote:
Hi guys, I've created a table in my local database and filled it with a
great amount of data (too much!) and now I need to insert the same data
on my website database. What a stressful operation! :-/
Do you know some way to speed up the data filling? Any ideas?
Is there a query to copy directly a table content from local db to
remote one? Or to save-export the local table content in a file and than
load-import this file from remote db?

Thanks.

Carla
(from ITALY)
mysqldump


Reply With Quote
  #3  
Old   
Peter H. Coffin
 
Posts: n/a

Default Re: copy a table from local to remote - 05-06-2008 , 11:08 AM



On Tue, 06 May 2008 17:22:05 +0200, Carla wrote:
Quote:
Hi guys, I've created a table in my local database and filled it with a
great amount of data (too much!) and now I need to insert the same data
on my website database. What a stressful operation! :-/
Do you know some way to speed up the data filling? Any ideas?
Is there a query to copy directly a table content from local db to
remote one? Or to save-export the local table content in a file and than
load-import this file from remote db?
If you've got command access on both systems, you can use mysqldump,
compress the resulting file which will often end up with something about
1/5th the size of the raw data), upload and decompress, and run the dump
as a mysql script.

--
Kyle J Cardoza <admin (AT) zetachannel (DOT) com> sigged:
Quote:
Faith does not, in fact, move mountains;
Mainly because they won't let her loose with a drilling crew and enough
dynamite. -- Chris Suslowicz in the Monastery


Reply With Quote
  #4  
Old   
Carla
 
Posts: n/a

Default Re: copy a table from local to remote - 05-06-2008 , 11:11 AM



I know that mysqldump is used for backup copies.
In my case do you suggest to make a backup file with mysqldump and
import itself by remote?
Could I do it by phpmyadmin?

Thanks

Captain Paralytic ha scritto:
Quote:
On 6 May, 16:22, Carla <carlarendine6... (AT) tin (DOT) it> wrote:
Hi guys, I've created a table in my local database and filled it with a
great amount of data (too much!) and now I need to insert the same data
on my website database. What a stressful operation! :-/
Do you know some way to speed up the data filling? Any ideas?
Is there a query to copy directly a table content from local db to
remote one? Or to save-export the local table content in a file and than
load-import this file from remote db?

Thanks.

Carla
(from ITALY)

mysqldump

Reply With Quote
  #5  
Old   
Paul Lautman
 
Posts: n/a

Default Re: copy a table from local to remote - 05-06-2008 , 03:03 PM



Carla wrote:> Captain Paralytic ha scritto:
Quote:
On 6 May, 16:22, Carla <carlarendine6... (AT) tin (DOT) it> wrote:
Hi guys, I've created a table in my local database and filled it
with a great amount of data (too much!) and now I need to insert
the same data on my website database. What a stressful operation!
:-/ Do you know some way to speed up the data filling? Any ideas?
Is there a query to copy directly a table content from local db to
remote one? Or to save-export the local table content in a file and
than load-import this file from remote db?

Thanks.

Carla
(from ITALY)

mysqldump
I know that mysqldump is used for backup copies.
In my case do you suggest to make a backup file with mysqldump and
import itself by remote?
Could I do it by phpmyadmin?

Thanks

Please don't top post (top posting fixed).

Yes you could export the dump from PMA, which will also compress the file
for you. Then you can upload it using PMA at the remote end.






Reply With Quote
  #6  
Old   
Carla
 
Posts: n/a

Default Re: copy a table from local to remote - 05-06-2008 , 05:35 PM



Thank you all for your tips, I'll use phpmyadmin.
I'm not an expert on using mysql and I've never used mysqldump, so I'll
use phpmyadmin that seems to be more easy to manage.
Thanks again.

Clara

Reply With Quote
  #7  
Old   
costas.palaskas@gmail.com
 
Posts: n/a

Default Re: copy a table from local to remote - 05-08-2008 , 08:04 AM



On May 6, 7:11 pm, Carla <carlarendine6... (AT) tin (DOT) it> wrote:
Quote:
I know that mysqldump is used for backup copies.
In my case do you suggest to make a backup file with mysqldump and
import itself by remote?
Could I do it by phpmyadmin?

Thanks

Captain Paralytic ha scritto:

On 6 May, 16:22, Carla <carlarendine6... (AT) tin (DOT) it> wrote:
Hi guys, I've created a table in my local database and filled it with a
great amount of data (too much!) and now I need to insert the same data
on my website database. What a stressful operation! :-/
Do you know some way to speed up the data filling? Any ideas?
Is there a query to copy directly a table content from local db to
remote one? Or to save-export the local table content in a file and than
load-import this file from remote db?

Thanks.

Carla
(from ITALY)

mysqldump
Yes I use phpMyAdmin 2.11.6 and have 2 identical DBs up there. U can
select a table click export, always use transaction, select the insert
method and SQL radio button and by clicking GO it will create an
INSERT SCRIPT that you can then copy paste to notepad lets say, and
run on the database you wish. In your case I guess you should install
phpadmin locally and do an export from local db to Live.
Cheers


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.