Software Development & Operating Systems

Notes on Software Development & Operating Systems

September, 2011

Dump and Restore a MySQL database

Dump a MySQL database to a file: mysqldump -h ‘hostname’ -u db_username -p –quick db_name | gzip > dump_file_name.gz Restore a MySQL database from a dump file: gunzip < dump_file_name.gz | mysql -h ‘hostname’ -u db_username -p db_name


Posted in Database, MySQL | Comments Off

Create a branch in Subversion

svn copy https://server/path/to/trunk https://server/path/to/branches/newBranch -m “Cut branch: newBranch”


Posted in Subversion, Version Control | Comments Off