1, Dump whole DB schema
$ mysqldump --no-data -u mysqluser -pMysql_DB_PW api > api.mysql
2, Dump a table data from DB
$ mysqldump -u mysqluser -pMysql_DB_PW api_DB a_table > db_table.mysql
Subscribe to:
Post Comments (Atom)
-
Step 1, New a project rails new demo Step 2, Update Gemfile add paperclip, mysql2 gem, enable JavaScript runtime gem 'mysql2' ...
-
I used 7z to zip this file under Windows, try to unzip it under linux [ang@walker temp]$ gunzip 2011.sdf.zip gunzip: 2011.sdf.zip: unkno...
-
By install php-xml, you may enable it. [root@localhost html]# yum install php-xml check: [root@localhost html]# php -m [PHP Modules] bz2 cal...
restore:
ReplyDelete$ mysql -u mysqluser -pMysql_DB_PW api_DB < db_table.mysql