• mysqldump db_name > outputfile.sql - dumps the database db_name into file outputfile.sql
    • mysql db_name < outputfile.sql - restores file on the server
    • mysqldump -d dump just the database structure, not the data
    • mysqldump --opt db_name | mysql --host=remote_host -C db_name - remote populate a database

-- MattWalsh - 19 Jul 2007

Topic revision: r1 - 19 Jul 2007 - MattWalsh
 
This site is powered by the TWiki collaboration platformCopyright © 2008-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback