Vahid Ghafarpour's Blog

نكات جالب از نظر وحيد غفارپور!

Tuesday, January 2, 2007

Mysql Backup

copy a table to another

CREATE TABLE new_tbl SELECT * FROM orig_tbl;


Full backup of MySql databases:
1. shell> mysqldump --tab=/path/to/some/dir --opt --full
OR
2. shell> mysqlhotcopy database /path/to/some/dir
OR
3. simply copy all table files (`*.frm', `*.MYD', and `*.MYI' files)

http://www.databasejournal.com/features/mysql/article.php/3421751

http://dev.mysql.com/doc/refman/5.0/en/backup.html

Labels:

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home