{"id":631,"date":"2021-07-06T07:04:39","date_gmt":"2021-07-06T12:04:39","guid":{"rendered":"https:\/\/www.knownhost.com\/kb\/?p=631"},"modified":"2021-11-17T06:29:25","modified_gmt":"2021-11-17T12:29:25","slug":"creating-mysql-backups-and-importing-them-via-command-line","status":"publish","type":"post","link":"https:\/\/www.knownhost.com\/kb\/creating-mysql-backups-and-importing-them-via-command-line\/","title":{"rendered":"Creating MySQL Backups and Importing them via Command Line"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 ez-toc-wrap-right counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #212121;color:#212121\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #212121;color:#212121\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.knownhost.com\/kb\/creating-mysql-backups-and-importing-them-via-command-line\/#dumping_a_mysql_database_explained\" >Dumping a MySQL database, explained<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.knownhost.com\/kb\/creating-mysql-backups-and-importing-them-via-command-line\/#creating_a_mysql_backups\" >Creating a MySQL Backups<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.knownhost.com\/kb\/creating-mysql-backups-and-importing-them-via-command-line\/#importing_a_mysql_backups_database\" >Importing a MySQL backups database<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.knownhost.com\/kb\/creating-mysql-backups-and-importing-them-via-command-line\/#importing_a_specific_database_from_large_dump\" >Importing a Specific Database from Large Dump<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.knownhost.com\/kb\/creating-mysql-backups-and-importing-them-via-command-line\/#importing_all_databases_from_dump\" >Importing all Databases from Dump<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n\n<p>Importing and dumping backups from command line is more efficient than using a\u00a0GUI\u00a0like <a href=\"https:\/\/docs.phpmyadmin.net\/en\/latest\/\">phpMyAdmin<\/a>. Command line queries for MySQL don&#8217;t follow any PHP limits, so importing or exporting MySQL backups is easier and it&#8217;s very unlikely that you&#8217;ll run into any errors that <a href=\"https:\/\/www.knownhost.com\/kb\/increasing-max-upload-filesize-and-post-max-size-in-directadmins-phpmyadmin\/\">phpMyAdmin may<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"dumping_a_mysql_database_explained\"><\/span>Dumping a MySQL database, explained<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The&nbsp;<code>mysqldump<\/code>&nbsp;command writes a plain text version of your database(s) including the CREATE DATABASE and USE commands, essentially printing a snapshot of your current database. Running just the command will print out the entire database with all the statements, but nothing else &#8211; so you&#8217;ll need to pipe the output to another command or crocodile it into a file.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"creating_a_mysql_backups\"><\/span>Creating a MySQL Backups<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n<div class=\"kb-shortcode kb-shortcode_warning\">\n                    <div class=\"kb-shortcode-icon\">\n                        <i class=\"fa fa-exclamation-triangle fa-2x\"><\/i>\n                    <\/div>\n                    <div class=\"kb-shortcode-content_warning\">We&#8217;re going to assume moving forward that you&#8217;re logged in as the root user &#8211; if you&#8217;re not, you need to make sure the command is followed by the username and password of the MySQL user which has privileges on the database, like this:<\/p>\n<p>mysqldump -uaccount_testuser -pthisismypassword &#8230;<\/div>\n                <\/div>\n\n\n\n<p>When creating a backup, the most common process is to compress it when dumped. Compressing a MySQL dump reduces the size of the payload &#8211; it&#8217;s also recommended when transferring (or downloading the backup) to compress it to maintain its integrity.<\/p>\n\n\n\n<p>To do this, you can use the&nbsp;<code>gzip<\/code>&nbsp;command, which should be installed on all of our servers:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  mysqldump database | gzip &gt; database.sql.gz<\/code><\/pre>\n\n\n\n<p>You can specify more than one database:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  mysqldump \u2013databases database1 database2 database3 | gzip &gt; database123.sql.gz<\/code><\/pre>\n\n\n\n<p>You can even specify one or more tables of a database:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  mysqldump database tablename tablename2 tablename3 | gzip &gt; database_tables.sql.gz<\/code><\/pre>\n\n\n\n<p>If you want to dump multiple tables from different databases into a single backup, you can do that as well, but it requires multiple commands. Here&#8217;s an example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mysqldump database1 table1 &gt; database_tables.sql \nmysqldump database2 table2 &gt;&gt; database_tables.sql\ngzip -c database_tables.sql &gt; database_tables.sql.gz<\/code><\/pre>\n\n\n\n<p>Lastly, if you just want to dump all databases, you can do that with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  mysqldump --all-databases | gzip &gt; all-databases.sql.gz<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"importing_a_mysql_backups_database\"><\/span>Importing a MySQL backups database<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n<div class=\"kb-shortcode kb-shortcode_warning\">\n                    <div class=\"kb-shortcode-icon\">\n                        <i class=\"fa fa-exclamation-triangle fa-2x\"><\/i>\n                    <\/div>\n                    <div class=\"kb-shortcode-content_warning\">If possible and space allows, always backup the database you&#8217;re working with before importing over it, just in case!<\/div>\n                <\/div>\n\n\n\n<p>Importing MySQL databases is just as easy as backing them up. If the database already contains data,&nbsp;<span class=\"has-vivid-red-color has-text-color\"><strong>it will be overwritten in the process!<\/strong><\/span>&nbsp;If the database is compressed, you can use one of the following commands to import it:<\/p>\n\n\n\n<p>With&nbsp;<code>gunzip<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  gunzip &lt; my_database_backup.sql.gz | mysql mydatabase<\/code><\/pre>\n\n\n\n<p>With&nbsp;<code>zcat<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  zcat my_database_backup.sql.gz | mysql mydatabase<\/code><\/pre>\n\n\n\n<p>And if the database is not compressed, you can import it two different ways. The easiest way is:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  mysql my_database &lt; my_database_backup.sql<\/code><\/pre>\n\n\n\n<p>Sometimes MySQL backups dump files from other sources will dump&nbsp;<em>specifically<\/em>&nbsp;into a database name that is specified in the dump file. This can be confusing at first, so it&#8217;s a good idea to get into the habit of importing MySQL databases safely by&nbsp;<code>sourcing<\/code>&nbsp;them via MySQL&#8217;s command line. Here&#8217;s how:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#091;root@cluster ~]# mysql                                                          \nWelcome to the MariaDB monitor.  Commands end with ; or \\g.                      \nYour MariaDB connection id is 2856719                                            \nServer version: 10.3.27-MariaDB MariaDB Server                                   \n\nCopyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.\n\nType 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.\n\nMariaDB &#091;(none)]&gt; use knownhost_database;\nReading table information for completion of table and column names\nYou can turn off this feature to get a quicker startup with -A\n\nDatabase changed\nMariaDB &#091;knownhost_database]&gt; source \/home\/knownhost\/my_database.sql\n\nQuery OK, 19 rows affected (0.001 sec)  \nRecords: 19  Duplicates: 0  Warnings: 0 \n\nQuery OK, 3 rows affected (0.001 sec)  \nRecords: 3  Duplicates: 0  Warnings: 0 \n\nQuery OK, 43 rows affected (0.000 sec)\nRecords: 43  Duplicates: 0  Warnings: 0\n\nMariaDB &#091;knownhost_database]&gt; quit\nBye\n&#091;root@cluster ~]#<\/code><\/pre>\n\n\n\n<p>Using the above method requires that the database is uncompressed before you import it &#8211; make sure you&nbsp;<strong>uncompress<\/strong>&nbsp;it before attempting the import.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"importing_a_specific_database_from_large_dump\"><\/span>Importing a Specific Database from Large Dump<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Sometimes you&#8217;ll only need to import a single database from a MySQL dump file backups you created. This is fairly simple to do:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  mysql \u2013one-database database &lt; all_databases.sql<\/code><\/pre>\n\n\n\n<p>Other times, you may want to import a single table into a database from a full database backup. This still overwrites the table in question (<em>if it exists<\/em>), but will leave the rest of the database untouched. This requires multiple commands to first pull the table out of the dump file, and then to import the table:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  sed -n -e '\/CREATE TABLE.*`single_table`\/,\/Table structure for table\/p' mysql_backup.sql &gt; single_table.sql\n  mysql database_to_import_into &lt; single_table.sql<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"importing_all_databases_from_dump\"><\/span>Importing all Databases from Dump<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>You can import all the databases in a dump file.<\/p>\n\n\n\n<p class=\"has-vivid-red-color has-text-color\"><strong>THIS WILL OVERWRITE ANY CURRENT INFORMATION THAT IS DIFFERENT FROM THE IMPORT. DO NOT DO THIS UNLESS YOU&#8217;RE SURE OF THE CHANGES!<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  mysql &lt; all_databases.sql<\/code><\/pre>\n\n\n\n<p>If it is compressed as a&nbsp;<code>gzip<\/code>&nbsp;file, you can also do:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  gunzip all_database.sql.gz | mysql<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Importing and dumping backups from command line is more efficient than using a\u00a0GUI\u00a0like phpMyAdmin. Command line queries for MySQL don&#8217;t follow any PHP limits, so importing or exporting MySQL backups is easier and it&#8217;s very unlikely that you&#8217;ll run into any errors that phpMyAdmin may. Dumping a MySQL database, explained The&nbsp;mysqldump&nbsp;command writes a plain text [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[239,123,186],"class_list":["post-631","post","type-post","status-publish","format-standard","hentry","category-getting-started","tag-backups","tag-linux","tag-mysql"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Creating MySQL Backups and Importing them via Command Line - KnownHost<\/title>\n<meta name=\"description\" content=\"Need to import large database? Learn how to create MySQL backups dump files using command line on premium KnownHost servers.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.knownhost.com\/kb\/creating-mysql-backups-and-importing-them-via-command-line\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Creating MySQL Backups and Importing them via Command Line - KnownHost\" \/>\n<meta property=\"og:description\" content=\"Need to import large database? Learn how to create MySQL backups dump files using command line on premium KnownHost servers.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.knownhost.com\/kb\/creating-mysql-backups-and-importing-them-via-command-line\/\" \/>\n<meta property=\"og:site_name\" content=\"KnownHost\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-06T12:04:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-11-17T12:29:25+00:00\" \/>\n<meta name=\"author\" content=\"Jonathan K. W.\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jonathan K. W.\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/creating-mysql-backups-and-importing-them-via-command-line\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/creating-mysql-backups-and-importing-them-via-command-line\\\/\"},\"author\":{\"name\":\"Jonathan K. W.\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/3db6e20d1f33519cd68fe0ba1230a48b\"},\"headline\":\"Creating MySQL Backups and Importing them via Command Line\",\"datePublished\":\"2021-07-06T12:04:39+00:00\",\"dateModified\":\"2021-11-17T12:29:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/creating-mysql-backups-and-importing-them-via-command-line\\\/\"},\"wordCount\":612,\"keywords\":[\"backups\",\"linux\",\"mysql\"],\"articleSection\":[\"Getting Started\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/creating-mysql-backups-and-importing-them-via-command-line\\\/\",\"url\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/creating-mysql-backups-and-importing-them-via-command-line\\\/\",\"name\":\"Creating MySQL Backups and Importing them via Command Line - KnownHost\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#website\"},\"datePublished\":\"2021-07-06T12:04:39+00:00\",\"dateModified\":\"2021-11-17T12:29:25+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/3db6e20d1f33519cd68fe0ba1230a48b\"},\"description\":\"Need to import large database? Learn how to create MySQL backups dump files using command line on premium KnownHost servers.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/creating-mysql-backups-and-importing-them-via-command-line\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/creating-mysql-backups-and-importing-them-via-command-line\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/creating-mysql-backups-and-importing-them-via-command-line\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Creating MySQL Backups and Importing them via Command Line\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/\",\"name\":\"KnownHost\",\"description\":\"KnownHost provides a comprehensive webhosting knowledge base to help answer many of your common webhosting and linux questions.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/3db6e20d1f33519cd68fe0ba1230a48b\",\"name\":\"Jonathan K. W.\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g\",\"caption\":\"Jonathan K. W.\"},\"sameAs\":[\"https:\\\/\\\/www.knownhost.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Creating MySQL Backups and Importing them via Command Line - KnownHost","description":"Need to import large database? Learn how to create MySQL backups dump files using command line on premium KnownHost servers.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.knownhost.com\/kb\/creating-mysql-backups-and-importing-them-via-command-line\/","og_locale":"en_US","og_type":"article","og_title":"Creating MySQL Backups and Importing them via Command Line - KnownHost","og_description":"Need to import large database? Learn how to create MySQL backups dump files using command line on premium KnownHost servers.","og_url":"https:\/\/www.knownhost.com\/kb\/creating-mysql-backups-and-importing-them-via-command-line\/","og_site_name":"KnownHost","article_published_time":"2021-07-06T12:04:39+00:00","article_modified_time":"2021-11-17T12:29:25+00:00","author":"Jonathan K. W.","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Jonathan K. W.","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.knownhost.com\/kb\/creating-mysql-backups-and-importing-them-via-command-line\/#article","isPartOf":{"@id":"https:\/\/www.knownhost.com\/kb\/creating-mysql-backups-and-importing-them-via-command-line\/"},"author":{"name":"Jonathan K. W.","@id":"https:\/\/www.knownhost.com\/kb\/#\/schema\/person\/3db6e20d1f33519cd68fe0ba1230a48b"},"headline":"Creating MySQL Backups and Importing them via Command Line","datePublished":"2021-07-06T12:04:39+00:00","dateModified":"2021-11-17T12:29:25+00:00","mainEntityOfPage":{"@id":"https:\/\/www.knownhost.com\/kb\/creating-mysql-backups-and-importing-them-via-command-line\/"},"wordCount":612,"keywords":["backups","linux","mysql"],"articleSection":["Getting Started"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.knownhost.com\/kb\/creating-mysql-backups-and-importing-them-via-command-line\/","url":"https:\/\/www.knownhost.com\/kb\/creating-mysql-backups-and-importing-them-via-command-line\/","name":"Creating MySQL Backups and Importing them via Command Line - KnownHost","isPartOf":{"@id":"https:\/\/www.knownhost.com\/kb\/#website"},"datePublished":"2021-07-06T12:04:39+00:00","dateModified":"2021-11-17T12:29:25+00:00","author":{"@id":"https:\/\/www.knownhost.com\/kb\/#\/schema\/person\/3db6e20d1f33519cd68fe0ba1230a48b"},"description":"Need to import large database? Learn how to create MySQL backups dump files using command line on premium KnownHost servers.","breadcrumb":{"@id":"https:\/\/www.knownhost.com\/kb\/creating-mysql-backups-and-importing-them-via-command-line\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.knownhost.com\/kb\/creating-mysql-backups-and-importing-them-via-command-line\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.knownhost.com\/kb\/creating-mysql-backups-and-importing-them-via-command-line\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.knownhost.com\/kb\/"},{"@type":"ListItem","position":2,"name":"Creating MySQL Backups and Importing them via Command Line"}]},{"@type":"WebSite","@id":"https:\/\/www.knownhost.com\/kb\/#website","url":"https:\/\/www.knownhost.com\/kb\/","name":"KnownHost","description":"KnownHost provides a comprehensive webhosting knowledge base to help answer many of your common webhosting and linux questions.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.knownhost.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.knownhost.com\/kb\/#\/schema\/person\/3db6e20d1f33519cd68fe0ba1230a48b","name":"Jonathan K. W.","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g","caption":"Jonathan K. W."},"sameAs":["https:\/\/www.knownhost.com"]}]}},"_links":{"self":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/posts\/631","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/comments?post=631"}],"version-history":[{"count":0,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/posts\/631\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/media?parent=631"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/categories?post=631"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/tags?post=631"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}