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
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
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
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!