{"id":451,"date":"2015-05-20T09:37:45","date_gmt":"2015-05-20T14:37:45","guid":{"rendered":"http:\/\/www.g31zone.com\/?p=451"},"modified":"2015-05-20T09:37:45","modified_gmt":"2015-05-20T14:37:45","slug":"exporting-and-importing-compressed-mysql-databases","status":"publish","type":"post","link":"https:\/\/www.g31zone.com\/?p=451","title":{"rendered":"Exporting and Importing Compressed MySQL Databases"},"content":{"rendered":"<p>This command will dump a MySQL database, compress it and save it to a file (replace userName and databaseName with your data):<\/p>\n<p>\n<code><br \/>\nmysqldump -u userName -p databaseName | gzip > databaseName.sql.gz<br \/>\n<\/code><\/p>\n<p>The import command takes a compressed MySQL dump, decompresses it and adds it to the database (replace userName and databaseName with your data):<\/p>\n<p><code><br \/>\ngzip -dc < databaseName.sql.gz | mysql -u userName -p databaseName\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This command will dump a MySQL database, compress it and save it to a file (replace userName and databaseName with your data): mysqldump -u userName -p databaseName | gzip > databaseName.sql.gz The import command takes a compressed MySQL dump, decompresses it and adds it to the database (replace userName and databaseName with your data): gzip<\/p>\n<p><a class=\"button\" href=\"https:\/\/www.g31zone.com\/?p=451\" title=\"More\">  Read More \u2192<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[154,155],"class_list":["post-451","post","type-post","status-publish","format-standard","hentry","category-mysql","tag-exporting-compressed-mysql-databases","tag-importing-compressed-mysql-databases"],"_links":{"self":[{"href":"https:\/\/www.g31zone.com\/index.php?rest_route=\/wp\/v2\/posts\/451"}],"collection":[{"href":"https:\/\/www.g31zone.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.g31zone.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.g31zone.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.g31zone.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=451"}],"version-history":[{"count":1,"href":"https:\/\/www.g31zone.com\/index.php?rest_route=\/wp\/v2\/posts\/451\/revisions"}],"predecessor-version":[{"id":452,"href":"https:\/\/www.g31zone.com\/index.php?rest_route=\/wp\/v2\/posts\/451\/revisions\/452"}],"wp:attachment":[{"href":"https:\/\/www.g31zone.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=451"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.g31zone.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=451"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.g31zone.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=451"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}