{"id":19658,"date":"2024-09-03T03:05:42","date_gmt":"2024-09-03T10:05:42","guid":{"rendered":"https:\/\/www.pingcap.com\/article\/guide-importing-exporting-databases-mysqldump\/"},"modified":"2024-11-14T05:59:35","modified_gmt":"2024-11-14T13:59:35","slug":"guide-importing-exporting-databases-mysqldump","status":"publish","type":"article","link":"https:\/\/www.pingcap.com\/ko\/article\/guide-importing-exporting-databases-mysqldump\/","title":{"rendered":"Guide to Importing and Exporting Databases with Mysqldump"},"content":{"rendered":"\n<p>In today&#8217;s data-driven world, the ability to efficiently import and export databases is crucial for businesses and developers alike. Whether it&#8217;s for backup purposes, data migration, or ensuring high availability, managing databases effectively is a common task in software development. <strong>MySQL dump<\/strong> emerges as an indispensable tool in this process, enabling users to create backups and transfer data seamlessly between MySQL servers. Its versatility and reliability make it a preferred choice for handling database operations, ensuring that your data remains accessible and secure across various platforms.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Prerequisites\"><\/span>Prerequisites<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Before diving into the practical aspects of importing and exporting databases with <strong>mysqldump<\/strong>, it&#8217;s essential to ensure that your system meets the necessary prerequisites. This preparation will help streamline the process and minimize potential issues.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">System Requirements<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Supported Operating Systems<\/h4>\n\n\n\n<p><strong>mysqldump<\/strong> is a versatile tool compatible with various operating systems. It supports:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Linux<\/strong>: Most distributions, including Ubuntu, CentOS, and Debian, are well-suited for running mysqldump.<\/li>\n\n\n\n<li><strong>Windows<\/strong>: Ensure you have the MySQL client installed, as it includes mysqldump.<\/li>\n\n\n\n<li><strong>macOS<\/strong>: Compatible with macOS versions that support MySQL installations.<\/li>\n<\/ul>\n\n\n\n<p>It&#8217;s crucial to verify that your operating system is updated to a version that supports the latest MySQL client tools.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Required Software and Tools<\/h4>\n\n\n\n<p>To effectively use <strong>mysqldump<\/strong>, you&#8217;ll need:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>MySQL Client<\/strong>: This package includes the mysqldump utility. Ensure you have the latest version to access all features and improvements.<\/li>\n\n\n\n<li><strong>Command-Line Interface (CLI)<\/strong>: Familiarity with using a terminal or command prompt is necessary, as mysqldump operates via command-line instructions.<\/li>\n\n\n\n<li><strong>Text Editor<\/strong>: While not mandatory, having a text editor like Vim, Nano, or Notepad++ can be helpful for reviewing and editing SQL dump files.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Access and Permissions<\/h3>\n\n\n\n<p>Proper access and permissions are critical for successfully using <strong>mysqldump<\/strong>. Without the right privileges, you may encounter errors during the export or import processes.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Database User Privileges<\/h4>\n\n\n\n<p>Ensure that the database user account has the following privileges:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>SELECT<\/strong>: Required to read data from the database tables.<\/li>\n\n\n\n<li><strong>LOCK TABLES<\/strong>: Necessary for ensuring data consistency during the export process.<\/li>\n\n\n\n<li><strong>SHOW VIEW<\/strong>: Needed if your database contains views.<\/li>\n\n\n\n<li><strong>TRIGGER<\/strong>: If your database uses triggers, this privilege is essential.<\/li>\n<\/ul>\n\n\n\n<p>These privileges can be granted using the MySQL <code>GRANT<\/code> statement, tailored to your specific database needs.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Network Access Considerations<\/h4>\n\n\n\n<p>When working with remote databases, consider the following network access factors:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Firewall Settings<\/strong>: Ensure that your firewall allows traffic on the MySQL port (default is 3306).<\/li>\n\n\n\n<li><strong>VPN or SSH Tunneling<\/strong>: For secure connections, especially when accessing databases over the internet, consider using a VPN or setting up an SSH tunnel.<\/li>\n\n\n\n<li><strong>IP Whitelisting<\/strong>: If your database server employs IP whitelisting, make sure your client machine&#8217;s IP address is allowed.<\/li>\n<\/ul>\n\n\n\n<p>By addressing these prerequisites, you&#8217;ll set a solid foundation for using <strong>mysqldump<\/strong> effectively, ensuring smooth and efficient database management operations.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Exporting_Databases_with_Mysqldump\"><\/span>Exporting Databases with Mysqldump<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Exporting databases is a fundamental task for database administrators and developers, enabling data backup, migration, and sharing. The <strong>mysql dump<\/strong> utility is a powerful tool that facilitates these processes with ease and efficiency. Below, we delve into the essential commands and options for exporting databases using <strong>mysqldump<\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Basic Export Command<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Syntax and Options<\/h4>\n\n\n\n<p>The basic syntax of the <strong>mysql dump<\/strong> command is straightforward, yet it offers several options to customize the export process:<\/p>\n\n\n\n<pre class=\"wp-block-code\">\n<code class=\"language-bash\">mysqldump -u [username] -p [database_name] &gt; [dump_file.sql]\n<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>-u [username]<\/code>: Specifies the MySQL username.<\/li>\n\n\n\n<li><code>-p<\/code>: Prompts for the password associated with the username.<\/li>\n\n\n\n<li><code>[database_name]<\/code>: The name of the database you wish to export.<\/li>\n\n\n\n<li><code>[dump_file.sql]<\/code>: The output file where the exported data will be saved.<\/li>\n<\/ul>\n\n\n\n<p>Additional options can be used to tailor the export, such as <code>--add-drop-table<\/code> to include a <code>DROP TABLE<\/code> statement before each <code>CREATE TABLE<\/code>, ensuring that tables are dropped before being recreated during an import.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Example Command<\/h4>\n\n\n\n<p>For instance, to export a database named <code>company_db<\/code> with a user <code>admin<\/code>, the command would be:<\/p>\n\n\n\n<pre class=\"wp-block-code\">\n<code class=\"language-bash\">mysqldump -u admin -p company_db &gt; company_backup.sql\n<\/code><\/pre>\n\n\n\n<p>This command creates a backup of <code>company_db<\/code> in a file named <code>company_backup.sql<\/code>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Advanced Export Options<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Exporting Specific Tables<\/h4>\n\n\n\n<p>Sometimes, you may only need to export specific tables rather than the entire database. The <strong>mysql dump<\/strong> command allows for this flexibility:<\/p>\n\n\n\n<pre class=\"wp-block-code\">\n<code class=\"language-bash\">mysqldump -u [username] -p [database_name] [table1 table2 ...] &gt; [dump_file.sql]\n<\/code><\/pre>\n\n\n\n<p>For example, to export only the <code>employees<\/code> and <code>departments<\/code> tables from <code>company_db<\/code>, use:<\/p>\n\n\n\n<pre class=\"wp-block-code\">\n<code class=\"language-bash\">mysqldump -u admin -p company_db employees departments &gt; selected_tables_backup.sql\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Using Compression<\/h4>\n\n\n\n<p>To save space and reduce transfer times, you can compress the output file using gzip:<\/p>\n\n\n\n<pre class=\"wp-block-code\">\n<code class=\"language-bash\">mysqldump -u admin -p company_db | gzip &gt; company_backup.sql.gz\n<\/code><\/pre>\n\n\n\n<p>This command compresses the export directly into a <code>.gz<\/code> file, making it more efficient for storage and transfer.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Scheduling Regular Backups<\/h3>\n\n\n\n<p>Regular backups are crucial for data integrity and disaster recovery. Automating these backups ensures that they occur consistently without manual intervention.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Using Cron Jobs<\/h4>\n\n\n\n<p>On Unix-based systems, cron jobs can be scheduled to run <strong>mysql dump<\/strong> commands at specified intervals. For example, to schedule a daily backup at midnight, add the following line to your crontab:<\/p>\n\n\n\n<pre class=\"wp-block-code\">\n<code class=\"language-bash\">0 0 * * * mysqldump -u admin -p[password] company_db &gt; \/path\/to\/backup\/company_backup_$(date +%F).sql\n<\/code><\/pre>\n\n\n\n<p>This command creates a backup file with the current date appended to its name, helping maintain an organized backup history.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Automating with Scripts<\/h4>\n\n\n\n<p>For more complex backup strategies, scripts can be employed to automate the process. A simple bash script might look like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\">\n<code class=\"language-bash\">#!\/bin\/bash\nDATE=$(date +%F)\nmysqldump -u admin -p[password] company_db &gt; \/path\/to\/backup\/company_backup_$DATE.sql\n<\/code><\/pre>\n\n\n\n<p>By executing this script via a cron job, you can automate the backup process, ensuring your data is regularly and securely backed up.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Importing_Databases_with_Mysqldump\"><\/span>Importing Databases with Mysqldump<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Importing databases is a vital process for restoring data from backups, migrating data between servers, or setting up new environments. The <strong>mysql dump<\/strong> utility simplifies this task, allowing for efficient and reliable data importation. Let&#8217;s explore the steps and considerations involved in importing databases using <strong>mysqldump<\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Preparing for Import<\/h3>\n\n\n\n<p>Before initiating the import process, it&#8217;s essential to ensure that your environment is ready to accept the data.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Checking Database Compatibility<\/h4>\n\n\n\n<p>Compatibility is crucial when importing data. Ensure that the MySQL version on the target server is compatible with the version used to create the <strong>mysql dump<\/strong> file. Incompatibilities can lead to syntax errors or data integrity issues during import. Always verify the SQL modes and character sets to prevent unexpected behavior.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Creating a New Database<\/h4>\n\n\n\n<p>If you&#8217;re importing into a new environment, you&#8217;ll need to create a database to hold the imported data. Use the following command to create a new database:<\/p>\n\n\n\n<pre class=\"wp-block-code\">\n<code class=\"language-sql\">CREATE DATABASE new_database_name;\n<\/code><\/pre>\n\n\n\n<p>Replace <code>new_database_name<\/code> with your desired database name. This step ensures that the data has a designated space for import.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Basic Import Command<\/h3>\n\n\n\n<p>Once the environment is prepared, you can proceed with the import using the basic <strong>mysql dump<\/strong> command.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Syntax and Options<\/h4>\n\n\n\n<p>The syntax for importing a database is straightforward:<\/p>\n\n\n\n<pre class=\"wp-block-code\">\n<code class=\"language-bash\">mysql -u [username] -p [database_name] &lt; [dump_file.sql]\n<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>-u [username]<\/code>: Specifies the MySQL username.<\/li>\n\n\n\n<li><code>-p<\/code>: Prompts for the password associated with the username.<\/li>\n\n\n\n<li><code>[database_name]<\/code>: The name of the database where the data will be imported.<\/li>\n\n\n\n<li><code>[dump_file.sql]<\/code>: The file containing the exported data.<\/li>\n<\/ul>\n\n\n\n<p>Ensure that the user has sufficient privileges to write to the database.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Example Command<\/h4>\n\n\n\n<p>For example, to import data into a database named <code>company_db<\/code> using a user <code>admin<\/code>, the command would be:<\/p>\n\n\n\n<pre class=\"wp-block-code\">\n<code class=\"language-bash\">mysql -u admin -p company_db &lt; company_backup.sql\n<\/code><\/pre>\n\n\n\n<p>This command imports the data from <code>company_backup.sql<\/code> into <code>company_db<\/code>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Handling Large Imports<\/h3>\n\n\n\n<p>Large databases can pose challenges during import due to size constraints and performance issues. Here are strategies to manage large imports effectively.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Adjusting MySQL Configuration<\/h4>\n\n\n\n<p>For large imports, adjust MySQL server configurations to optimize performance. Increase the <code>max_allowed_packet<\/code> size to accommodate larger data packets and adjust <code>innodb_buffer_pool_size<\/code> for better InnoDB performance. These settings can be modified in the MySQL configuration file (<code>my.cnf<\/code> or <code>my.ini<\/code>).<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Using Split Files<\/h4>\n\n\n\n<p>When dealing with extremely large databases, consider splitting the <strong>mysql dump<\/strong> file into smaller parts. Tools like <code>split<\/code> can divide the file into manageable chunks:<\/p>\n\n\n\n<pre class=\"wp-block-code\">\n<code class=\"language-bash\">split -l 1000 company_backup.sql part_\n<\/code><\/pre>\n\n\n\n<p>This command splits <code>company_backup.sql<\/code> into files with 1000 lines each, prefixed with <code>part_<\/code>. Import each part sequentially to manage resource usage effectively.<\/p>\n\n\n\n<p>By following these guidelines, you can ensure a smooth and efficient import process with <strong>mysql dump<\/strong>, safeguarding your data&#8217;s integrity and availability across different environments.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Troubleshooting_Common_Issues\"><\/span>Troubleshooting Common Issues<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Navigating the complexities of database management often involves encountering and resolving various issues. When using <strong>mysqldump<\/strong> for importing and exporting databases, certain errors can arise. Understanding these common problems and their solutions is crucial for maintaining smooth operations.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Common Export Errors<\/h3>\n\n\n\n<p>Exporting databases with <strong>mysqldump<\/strong> is generally straightforward, but there are a few common errors that users might encounter.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Permission Denied<\/h4>\n\n\n\n<p>One of the most frequent issues is the &#8220;Permission Denied&#8221; error. This typically occurs when the user lacks the necessary privileges to execute the export command. To resolve this:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Verify User Privileges<\/strong>: Ensure that the MySQL user has the required permissions, such as <code>SELECT<\/code>, <code>LOCK TABLES<\/code>, and <code>SHOW VIEW<\/code>. These can be granted using the <code>GRANT<\/code> statement in MySQL.<\/li>\n\n\n\n<li><strong>Check File System Permissions<\/strong>: Make sure the directory where you intend to save the dump file allows write access for the user executing the command.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Connection Timeout<\/h4>\n\n\n\n<p>A &#8220;Connection Timeout&#8221; error can disrupt the export process, especially with large databases or slow network connections. To mitigate this:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Increase Timeout Settings<\/strong>: Adjust the <code>connect_timeout<\/code> and <code>net_read_timeout<\/code> settings in your MySQL configuration file to allow more time for the connection to establish and maintain.<\/li>\n\n\n\n<li><strong>Optimize Network Conditions<\/strong>: Ensure stable network conditions by checking for any interruptions or bandwidth limitations that could affect the connection.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Common Import Errors<\/h3>\n\n\n\n<p>Importing data into a MySQL database using mysqldump can also present challenges. Here are some typical import errors and their solutions.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Syntax Errors<\/h4>\n\n\n\n<p>Syntax errors can occur if the SQL dump file contains commands or structures not supported by the target MySQL version. To address this:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Review SQL Modes<\/strong>: Check the SQL modes on the target server to ensure compatibility with the commands in the dump file.<\/li>\n\n\n\n<li><strong>Validate Dump File<\/strong>: Manually inspect the dump file for any anomalies or unsupported syntax, especially if the source and target MySQL versions differ.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Data Integrity Issues<\/h4>\n\n\n\n<p>Data integrity issues may arise if the imported data does not align with the existing schema or constraints in the target database. To prevent this:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Ensure Schema Compatibility<\/strong>: Before importing, verify that the target database schema matches the structure of the data being imported. This includes checking for primary keys, foreign keys, and data types.<\/li>\n\n\n\n<li><strong>Use Transactional Imports<\/strong>: If possible, perform the import within a transaction to ensure that any errors can be rolled back without affecting the existing data.<\/li>\n<\/ul>\n\n\n\n<p>By proactively addressing these common issues, you can enhance the reliability and efficiency of your database management processes with mysqldump. This approach not only safeguards data integrity but also streamlines the import and export operations, ensuring that your databases remain robust and accessible.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Master database import\/export with mysqldump. Learn commands, troubleshoot issues, and integrate TiDB for efficient data management.<\/p>","protected":false},"author":8,"featured_media":19657,"template":"","class_list":["post-19658","article","type-article","status-publish","has-post-thumbnail","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Guide to Importing and Exporting Databases with Mysqldump<\/title>\n<meta name=\"description\" content=\"Master database import\/export with mysqldump. Learn commands, troubleshoot issues, and integrate TiDB for efficient data management.\" \/>\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.pingcap.com\/ko\/article\/guide-importing-exporting-databases-mysqldump\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Guide to Importing and Exporting Databases with Mysqldump\" \/>\n<meta property=\"og:description\" content=\"Master database import\/export with mysqldump. Learn commands, troubleshoot issues, and integrate TiDB for efficient data management.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.pingcap.com\/ko\/article\/guide-importing-exporting-databases-mysqldump\/\" \/>\n<meta property=\"og:site_name\" content=\"TiDB\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/pingcap2015\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-14T13:59:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/static.pingcap.com\/files\/2024\/09\/03030542\/9e61405525594c6ab43183d191f3accd.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"675\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@PingCAP\" \/>\n<meta name=\"twitter:label1\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data1\" content=\"9\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.pingcap.com\/article\/guide-importing-exporting-databases-mysqldump\/\",\"url\":\"https:\/\/www.pingcap.com\/article\/guide-importing-exporting-databases-mysqldump\/\",\"name\":\"Guide to Importing and Exporting Databases with Mysqldump\",\"isPartOf\":{\"@id\":\"https:\/\/www.pingcap.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.pingcap.com\/article\/guide-importing-exporting-databases-mysqldump\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.pingcap.com\/article\/guide-importing-exporting-databases-mysqldump\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/static.pingcap.com\/files\/2024\/09\/03030542\/9e61405525594c6ab43183d191f3accd.webp\",\"datePublished\":\"2024-09-03T10:05:42+00:00\",\"dateModified\":\"2024-11-14T13:59:35+00:00\",\"description\":\"Master database import\/export with mysqldump. Learn commands, troubleshoot issues, and integrate TiDB for efficient data management.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.pingcap.com\/article\/guide-importing-exporting-databases-mysqldump\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.pingcap.com\/article\/guide-importing-exporting-databases-mysqldump\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/www.pingcap.com\/article\/guide-importing-exporting-databases-mysqldump\/#primaryimage\",\"url\":\"https:\/\/static.pingcap.com\/files\/2024\/09\/03030542\/9e61405525594c6ab43183d191f3accd.webp\",\"contentUrl\":\"https:\/\/static.pingcap.com\/files\/2024\/09\/03030542\/9e61405525594c6ab43183d191f3accd.webp\",\"width\":1200,\"height\":675,\"caption\":\"Guide to Importing and Exporting Databases with Mysqldump\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.pingcap.com\/article\/guide-importing-exporting-databases-mysqldump\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.pingcap.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Articles\",\"item\":\"https:\/\/www.pingcap.com\/article\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Guide to Importing and Exporting Databases with Mysqldump\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.pingcap.com\/#website\",\"url\":\"https:\/\/www.pingcap.com\/\",\"name\":\"TiDB\",\"description\":\"TiDB | SQL at Scale\",\"publisher\":{\"@id\":\"https:\/\/www.pingcap.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.pingcap.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.pingcap.com\/#organization\",\"name\":\"PingCAP\",\"url\":\"https:\/\/www.pingcap.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/www.pingcap.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/static.pingcap.com\/files\/2021\/11\/pingcap-logo.png\",\"contentUrl\":\"https:\/\/static.pingcap.com\/files\/2021\/11\/pingcap-logo.png\",\"width\":811,\"height\":232,\"caption\":\"PingCAP\"},\"image\":{\"@id\":\"https:\/\/www.pingcap.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/facebook.com\/pingcap2015\",\"https:\/\/x.com\/PingCAP\",\"https:\/\/linkedin.com\/company\/pingcap\",\"https:\/\/youtube.com\/channel\/UCuq4puT32DzHKT5rU1IZpIA\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Guide to Importing and Exporting Databases with Mysqldump","description":"Master database import\/export with mysqldump. Learn commands, troubleshoot issues, and integrate TiDB for efficient data management.","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.pingcap.com\/ko\/article\/guide-importing-exporting-databases-mysqldump\/","og_locale":"ko_KR","og_type":"article","og_title":"Guide to Importing and Exporting Databases with Mysqldump","og_description":"Master database import\/export with mysqldump. Learn commands, troubleshoot issues, and integrate TiDB for efficient data management.","og_url":"https:\/\/www.pingcap.com\/ko\/article\/guide-importing-exporting-databases-mysqldump\/","og_site_name":"TiDB","article_publisher":"https:\/\/facebook.com\/pingcap2015","article_modified_time":"2024-11-14T13:59:35+00:00","og_image":[{"width":1200,"height":675,"url":"https:\/\/static.pingcap.com\/files\/2024\/09\/03030542\/9e61405525594c6ab43183d191f3accd.webp","type":"image\/webp"}],"twitter_card":"summary_large_image","twitter_site":"@PingCAP","twitter_misc":{"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"9\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.pingcap.com\/article\/guide-importing-exporting-databases-mysqldump\/","url":"https:\/\/www.pingcap.com\/article\/guide-importing-exporting-databases-mysqldump\/","name":"Guide to Importing and Exporting Databases with Mysqldump","isPartOf":{"@id":"https:\/\/www.pingcap.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.pingcap.com\/article\/guide-importing-exporting-databases-mysqldump\/#primaryimage"},"image":{"@id":"https:\/\/www.pingcap.com\/article\/guide-importing-exporting-databases-mysqldump\/#primaryimage"},"thumbnailUrl":"https:\/\/static.pingcap.com\/files\/2024\/09\/03030542\/9e61405525594c6ab43183d191f3accd.webp","datePublished":"2024-09-03T10:05:42+00:00","dateModified":"2024-11-14T13:59:35+00:00","description":"Master database import\/export with mysqldump. Learn commands, troubleshoot issues, and integrate TiDB for efficient data management.","breadcrumb":{"@id":"https:\/\/www.pingcap.com\/article\/guide-importing-exporting-databases-mysqldump\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pingcap.com\/article\/guide-importing-exporting-databases-mysqldump\/"]}]},{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/www.pingcap.com\/article\/guide-importing-exporting-databases-mysqldump\/#primaryimage","url":"https:\/\/static.pingcap.com\/files\/2024\/09\/03030542\/9e61405525594c6ab43183d191f3accd.webp","contentUrl":"https:\/\/static.pingcap.com\/files\/2024\/09\/03030542\/9e61405525594c6ab43183d191f3accd.webp","width":1200,"height":675,"caption":"Guide to Importing and Exporting Databases with Mysqldump"},{"@type":"BreadcrumbList","@id":"https:\/\/www.pingcap.com\/article\/guide-importing-exporting-databases-mysqldump\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.pingcap.com\/"},{"@type":"ListItem","position":2,"name":"Articles","item":"https:\/\/www.pingcap.com\/article\/"},{"@type":"ListItem","position":3,"name":"Guide to Importing and Exporting Databases with Mysqldump"}]},{"@type":"WebSite","@id":"https:\/\/www.pingcap.com\/#website","url":"https:\/\/www.pingcap.com\/","name":"\ud2f0DB","description":"TiDB | SQL at Scale","publisher":{"@id":"https:\/\/www.pingcap.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.pingcap.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/www.pingcap.com\/#organization","name":"PingCAP","url":"https:\/\/www.pingcap.com\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/www.pingcap.com\/#\/schema\/logo\/image\/","url":"https:\/\/static.pingcap.com\/files\/2021\/11\/pingcap-logo.png","contentUrl":"https:\/\/static.pingcap.com\/files\/2021\/11\/pingcap-logo.png","width":811,"height":232,"caption":"PingCAP"},"image":{"@id":"https:\/\/www.pingcap.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/facebook.com\/pingcap2015","https:\/\/x.com\/PingCAP","https:\/\/linkedin.com\/company\/pingcap","https:\/\/youtube.com\/channel\/UCuq4puT32DzHKT5rU1IZpIA"]}]}},"card_markup":"        <a class=\"card-article\" href=\"https:\/\/www.pingcap.com\/ko\/article\/guide-importing-exporting-databases-mysqldump\/\">            <h3>Guide to Importing and Exporting Databases with Mysqldump<\/h3>            <p>Master database import\/export with mysqldump. Learn commands, troubleshoot issues, and integrate TiDB for efficient data management.<\/p>        <\/a>","_links":{"self":[{"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/article\/19658","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/types\/article"}],"author":[{"embeddable":true,"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/users\/8"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/media\/19657"}],"wp:attachment":[{"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/media?parent=19658"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}