Gossamer Forum
Home : General : Databases and SQL :

Copying whole database on NT?

Quote Reply
Copying whole database on NT?
Hi. Just a quickie. I know I can use 'mysqldump' to dump the records from a table, and then use 'mysql' to re-import them into another database, but this is pretty time consuming when you are dealing with 2+million entries.

So, my question is... can I just copy the .MYD and .MYI files directly on the server?

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Copying whole database on NT? In reply to
Yes, .myd files are binary compatible across most o/s. See:

http://www.mysql.com/doc/en/MyISAM.html

for details.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Copying whole database on NT? In reply to
Yeah, I just played with it yesterday, and copied all data from c:/mysql/database_name/* into the other databases folders Cool

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates