{"id":19853,"date":"2024-06-08T16:50:15","date_gmt":"2024-06-08T16:50:15","guid":{"rendered":"http:\/\/www.withdata.com\/blog\/?p=19853"},"modified":"2026-06-03T01:15:39","modified_gmt":"2026-06-03T01:15:39","slug":"split-large-sql-dump-file-into-smaller-sql-files","status":"publish","type":"post","link":"https:\/\/www.withdata.com\/blog\/sqldumpsplitter\/split-large-sql-dump-file-into-smaller-sql-files.html","title":{"rendered":"Split large SQL dump file into smaller SQL files"},"content":{"rendered":"<p>Want to split large SQL dump file into small SQL files?<\/p>\n<p>Using <a href=\"https:\/\/www.withdata.com\/sql-dump-splitter\/\">SQL Dump Splitter<\/a>, a native GUI software, a SQL dump splitter for Windows, Linux, and macOS, you can split big SQL dump file into multiple SQL files easily and fast.<\/p>\n<ul>\n<li>Can run in GUI mode, <a href=\"#convert\">Step by Step<\/a>, just a few mouse clicks.<\/li>\n<li>Can run in <a href=\"#cmd\">Command line<\/a>, for <a href=\"#task\">Scheduled Tasks<\/a> and Streams.<\/li>\n<li>Split SQL locally and <b>privately<\/b>, avoid uploading LARGE SQL file(s) to online services.<\/li>\n<\/ul>\n<p><a href=\"#download-top\" onclick=\"dtv.style.display = 'block';\">Download SQLDumpSplitter<\/a> <a href=\"#download-top\" onclick=\"dtv.style.display = 'block';\"><img decoding=\"async\" src=\"https:\/\/www.withdata.com\/images\/download_3.jpg\" alt=\"Download SQLDumpSplitter\" width=\"80\" height=\"22\" style=\"max-width:100%;height:auto;\" \/><\/a> <span id=\"dtv\" style=\"display: none;\"><br \/>\n<a href=\"\/download.php?app=SQLDumpSplitter&amp;ver=win64\">Windows 64 bit<\/a><br \/>\n<a href=\"\/download.php?app=SQLDumpSplitter&amp;ver=win32\">Windows 32 bit<\/a><br \/>\n<a href=\"\/download.php?app=SQLDumpSplitter&amp;ver=deb\">Linux .deb (For Debian, Ubuntu) 64 bit<\/a><br \/>\n<a href=\"\/download.php?app=SQLDumpSplitter&amp;ver=rpm\">Linux .rpm (For Red Hat, Fedora, SUSE) 64 bit<\/a><br \/>\n<a href=\"\/download.php?app=SQLDumpSplitter&amp;ver=pkg\">MacOS 64 bit<\/a><br \/>\n<\/span><\/p>\n<h2 id=\"convert\">Split big SQL dump file into smaller SQL files<\/h2>\n<p>An example SQL dump file, nearly 40 GB. View this large file in <a href=\"https:\/\/www.withdata.com\/big-text-file-viewer\/\">BigTextFileViewer <\/a>.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.withdata.com\/images\/sqldumpsplitter\/view-source-sql-dump.png\" alt=\"View the source SQL dump file\" width=\"1162\" height=\"732\" style=\"max-width:100%;height:auto;display:block;\" \/><\/p>\n<p>Run SQLDumpSplitter, click &#8220;New Task&#8221; at &#8220;Start&#8221;.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.withdata.com\/images\/sqldumpsplitter\/new-task-windows.png\" alt=\"split large ${file_type_label} file - new task\" width=\"962\" height=\"672\" style=\"max-width:100%;height:auto;display:block;\" loading=\"lazy\" decoding=\"async\" \/><\/p>\n<p>then show the splitting form, choose the SQL dump file to split.<\/p>\n<p>You can:<\/p>\n<ul>\n<li>Split this large SQL dump file to smaller SQL files by tables.<img decoding=\"async\" src=\"https:\/\/www.withdata.com\/images\/sqldumpsplitter\/split-large-sql-dump-by-tables.png\" alt=\"Split SQL file by tables\" width=\"722\" height=\"632\" style=\"max-width:100%;height:auto;display:block;\" loading=\"lazy\" decoding=\"async\" \/><\/li>\n<li>Or split this large SQL dump file to smaller SQL files by file size.<img decoding=\"async\" src=\"https:\/\/www.withdata.com\/images\/sqldumpsplitter\/split-large-sql-dump-by-filesize.png\" alt=\"Split SQL file by file size\" width=\"722\" height=\"632\" style=\"max-width:100%;height:auto;display:block;\" loading=\"lazy\" decoding=\"async\" \/><\/li>\n<li>Or split this huge SQL dump file to smaller SQL files by row count.<img decoding=\"async\" src=\"https:\/\/www.withdata.com\/images\/sqldumpsplitter\/split-large-sql-dump-by-row-count.png\" alt=\"Split SQL file by row count\" width=\"722\" height=\"632\" style=\"max-width:100%;height:auto;display:block;\" loading=\"lazy\" decoding=\"async\" \/><\/li>\n<\/ul>\n<h2 id=\"cmd\">Split large SQL dump file in command line<\/h2>\n<p><a rel=\"noopener\" href=\"https:\/\/www.withdata.com\/sql-dump-splitter\/cmd.html\" target=\"_blank\">Save &#8220;Split SQL&#8221; session<\/a>, then you can:<\/p>\n<ul>\n<li><a rel=\"noopener\" href=\"https:\/\/www.withdata.com\/sql-dump-splitter\/cmd.html#windows\" target=\"_blank\">Split large SQL dump file in Windows command line.<\/a><\/li>\n<li><a rel=\"noopener\" href=\"https:\/\/www.withdata.com\/sql-dump-splitter\/cmd.html#linux\" target=\"_blank\">Split large SQL dump file in Linux command line.<\/a><\/li>\n<li><a rel=\"noopener\" href=\"https:\/\/www.withdata.com\/sql-dump-splitter\/cmd.html#macos\" target=\"_blank\">Split large SQL dump file in macOS command line.<\/a><\/li>\n<\/ul>\n<h2 id=\"task\">Set scheduled tasks for splitting SQL dump file<\/h2>\n<p>You can schedule and automate this SQL splitting task by:<\/p>\n<p><a rel=\"noopener\" href=\"https:\/\/withdata.com\/sql-dump-splitter\/cmd.html\" target=\"_blank\">1) Save session and create .bat (Windows) or .sh (Linux\/macOS) file.<\/a><\/p>\n<p><a rel=\"noopener\" href=\"https:\/\/withdata.com\/dbtodb\/schedule-task.html\" target=\"_blank\">2) Set scheduled task.<\/a><\/p>\n<h2 id=\"faq\">FAQ<\/h2>\n<div><a href=\"#faq\" onclick=\"a1.style.display = 'block';\">How long does it take to split SQL dump file?<\/a><\/div>\n<div id=\"a1\" style=\"display: none;\">SQLDumpSplitter works fast. The example SQL dump file, nearly 40 GB, 1) split by tables: 30 minutes, 2) split by file size: 7 minutes.<\/div>\n<div><a href=\"#faq\" onclick=\"a2.style.display = 'block';\">Is it safe to split SQL dump file using SQLDumpSplitter?<\/a><\/div>\n<div id=\"a2\" style=\"display: none;\">Of course! SQLDumpSplitter split SQL dump file locally, absolutely safe.<\/div>\n<div><a href=\"#faq\" onclick=\"a3.style.display = 'block';\">Can I split SQL dump file on Linux, Mac OS?<\/a><\/div>\n<div id=\"a3\" style=\"display: none;\">Yes, you can. SQLDumpSplitter has Linux, Mac OS, and Windows version.<\/div>\n<div><a href=\"#faq\" onclick=\"a4.style.display = 'block';\">Can I split SQL dump file in command line?<\/a><\/div>\n<div id=\"a4\" style=\"display: none;\">Yes, you can. SQLDumpSplitter can running in command line, on Linux, Mac OS, and Windows.<\/div>\n<hr style=\"clear: both;\" \/>\n<p><a href=\"https:\/\/www.withdata.com\/sql-dump-splitter\/\">More about SQLDumpSplitter<\/a> &#8211; <a href=\"https:\/\/www.withdata.com\/sql-dump-splitter\/\">SQL dump splitter<\/a><\/p>\n<div id=\"download-bottom\" style=\"clear: both;\">\n<p>Download SQLDumpSplitter<a href=\"#download-bottom\" onclick=\"dbv.style.display = 'block';\"><img decoding=\"async\" src=\"https:\/\/www.withdata.com\/images\/btn_download_green.png\" alt=\"Download SQLDumpSplitter\" width=\"165\" height=\"50\" style=\"max-width:100%;height:auto;\" loading=\"lazy\" decoding=\"async\" \/><\/a> <span id=\"dbv\" style=\"display: none;\"><br \/>\n<a href=\"\/download.php?app=SQLDumpSplitter&amp;ver=win64\">Windows 64 bit<\/a><br \/>\n<a href=\"\/download.php?app=SQLDumpSplitter&amp;ver=win32\">Windows 32 bit<\/a><br \/>\n<a href=\"\/download.php?app=SQLDumpSplitter&amp;ver=deb\">Linux .deb (For Debian, Ubuntu) 64 bit<\/a><br \/>\n<a href=\"\/download.php?app=SQLDumpSplitter&amp;ver=rpm\">Linux .rpm (For Red Hat, Fedora, SUSE) 64 bit<\/a><br \/>\n<a href=\"\/download.php?app=SQLDumpSplitter&amp;ver=pkg\">MacOS 64 bit<\/a><br \/>\n<\/span><\/p>\n<\/div>\n<p>See videos:<\/p>\n<p><a href=\"https:\/\/youtu.be\/AH94J_i3yJA\">Split large SQL dump file by tables<\/a><br \/>\n<a href=\"https:\/\/youtu.be\/hd1ks4H7zws\">Split large SQL dump file by file size<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Want to split large SQL dump file into small SQL files? Using SQL Dump Splitter, a native GUI software, a SQL dump splitter for Windows, Linux, and macOS, you can split big SQL dump file into multiple SQL files easily and fast. Can run in GUI mode, Step by Step, just a few mouse clicks. [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4176],"tags":[3352,67,3351,4058],"class_list":["post-19853","post","type-post","status-publish","format-standard","hentry","category-sqldumpsplitter","tag-split-sql-dump-file","tag-sql","tag-sql-dump-file","tag-sql-dump-splitter"],"_links":{"self":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts\/19853","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/comments?post=19853"}],"version-history":[{"count":15,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts\/19853\/revisions"}],"predecessor-version":[{"id":45482,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts\/19853\/revisions\/45482"}],"wp:attachment":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/media?parent=19853"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/categories?post=19853"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/tags?post=19853"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}