{"id":668,"date":"2025-12-27T12:34:52","date_gmt":"2025-12-27T11:34:52","guid":{"rendered":"https:\/\/mybox.com\/help\/?post_type=manual_kb&#038;p=668"},"modified":"2026-02-09T12:40:55","modified_gmt":"2026-02-09T11:40:55","slug":"how-to-restore-a-database-from-a-sql-file","status":"publish","type":"manual_kb","link":"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-restore-a-database-from-a-sql-file\/","title":{"rendered":"How to restore a database from a .sql file?"},"content":{"rendered":"\n<div class=\"translation-block translation-block-merged\">\n<p class=\"wp-block-paragraph\">Using the instructions below, you can import a much larger database than using standard means such as phpMyAdmin.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1. To restore a copy of a selected database from a .sql file in the mybox panel (available at panel.mybox.com), select the &#8220;<strong>Databases<\/strong>&#8221; tab and then the &#8220;<strong>MySQL Databases<\/strong>&#8221; subtab.<\/p>\n\n\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"313\" height=\"663\" src=\"https:\/\/mybox.com\/help\/wp-content\/uploads\/2025\/12\/mybox-dbmenu.png\" alt=\"\" class=\"wp-image-4452\" srcset=\"https:\/\/mybox.com\/help\/wp-content\/uploads\/2025\/12\/mybox-dbmenu.png 313w, https:\/\/mybox.com\/help\/wp-content\/uploads\/2025\/12\/mybox-dbmenu-142x300.png 142w, https:\/\/mybox.com\/help\/wp-content\/uploads\/2025\/12\/mybox-dbmenu-6x12.png 6w\" sizes=\"auto, (max-width: 313px) 100vw, 313px\" \/><\/figure>\n<\/div>\n\n\n\n\n<div id=\"mybox-3938314041\" class=\"mybox-content mybox-entity-placement\"><div class=\"early-access-banner-inpost\">\r\n  <div class=\"banner-left-inpost\">\r\n    <div class=\"icon-box-inpost\">\r\n      <img decoding=\"async\" src=\"https:\/\/mybox.com\/help\/wp-content\/uploads\/2026\/02\/square-info-icon.svg\" alt=\"Info\">\r\n    <\/div>\r\n    <div class=\"text-box-inpost\">\r\n      <span class=\"label-inpost\"><span class=\"translation-block translation-block-banner-text\">Early access<\/span><\/span>\r\n      <h4><span class=\"translation-block translation-block-banner-text\">Still need help?<\/span><\/h4>\r\n      <p><span class=\"translation-block translation-block-banner-text\">Contact our customer service team.<\/span><\/p>\r\n    <\/div>\r\n  <\/div>\r\n\r\n  <div class=\"banner-right-inpost\">\r\n    <a href=\"https:\/\/panel.mybox.com\/helpdesk2\/v\/list\/\" class=\"banner-button-inpost\"><span class=\"translation-block translation-block-banner-text\">Message us<\/span><\/a>\r\n  <\/div>\r\n<\/div><\/div>\n\n<div class=\"translation-block translation-block-merged\"><p class=\"wp-block-paragraph\">2. Place the file on the server you want to import. It should be placed in the root directory via FTP, in the <strong>\/backup\/<\/strong> subfolder. The database export file should be saved with the .sql (text) or .gz (compressed) extension.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3. All your databases will be listed. Click &#8220;<strong>Actions<\/strong>&#8221; in the upper right corner and select &#8220;<strong>Import from file<\/strong>&#8221; from the drop-down list.<\/p>\n\n\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"458\" src=\"https:\/\/mybox.com\/help\/wp-content\/uploads\/2025\/12\/mybox-dbrest-1024x458.png\" alt=\"\" class=\"wp-image-4454\" srcset=\"https:\/\/mybox.com\/help\/wp-content\/uploads\/2025\/12\/mybox-dbrest-1024x458.png 1024w, https:\/\/mybox.com\/help\/wp-content\/uploads\/2025\/12\/mybox-dbrest-300x134.png 300w, https:\/\/mybox.com\/help\/wp-content\/uploads\/2025\/12\/mybox-dbrest-768x344.png 768w, https:\/\/mybox.com\/help\/wp-content\/uploads\/2025\/12\/mybox-dbrest-18x8.png 18w, https:\/\/mybox.com\/help\/wp-content\/uploads\/2025\/12\/mybox-dbrest.png 1086w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n<div class=\"translation-block translation-block-merged\">\n\n\n<p class=\"wp-block-paragraph\">4. A window will appear where you can define which database should be uploaded from the file.<\/p>\n\n\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"696\" height=\"695\" src=\"https:\/\/mybox.com\/help\/wp-content\/uploads\/2025\/12\/myboxdbrestoremodal.png\" alt=\"\" class=\"wp-image-4455\" srcset=\"https:\/\/mybox.com\/help\/wp-content\/uploads\/2025\/12\/myboxdbrestoremodal.png 696w, https:\/\/mybox.com\/help\/wp-content\/uploads\/2025\/12\/myboxdbrestoremodal-300x300.png 300w, https:\/\/mybox.com\/help\/wp-content\/uploads\/2025\/12\/myboxdbrestoremodal-150x150.png 150w, https:\/\/mybox.com\/help\/wp-content\/uploads\/2025\/12\/myboxdbrestoremodal-12x12.png 12w\" sizes=\"auto, (max-width: 696px) 100vw, 696px\" \/><\/figure>\n<\/div>\n\n<div class=\"translation-block translation-block-merged\">\n\n\n<p class=\"wp-block-paragraph\">Please remember that the file you want to import should be placed in the root directory via FTP, in the \/backup\/ subfolder.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The database export file should be saved with the .sql (text) or .gz (compressed) extension. Only files with these extensions will be displayed in the &#8220;<strong>Copy List<\/strong>&#8221; field.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After reading and accepting all messages, click &#8220;<strong>Restore<\/strong>&#8220;.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">5. We will receive confirmation of the database file upload order (in the upper right corner) and a message will be displayed informing us that the operation is being performed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">6. After completing the assigned task, the message will disappear.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"template":"","format":"standard","manualknowledgebasecat":[9,25],"manual_kb_tag":[2632,2648,2633,2649,2634,2650,242,2635,2651,283,2636,2652,388,2637,2653,389,2638,2654,471,2639,801,2640,968,2641,1014,2642,1108,2643,1715,2644,2126,2645,2146,2646,2426,2647],"class_list":["post-668","manual_kb","type-manual_kb","status-publish","format-standard","hentry","manualknowledgebasecat-databases","manualknowledgebasecat-hosting","manual_kb_tag-import-database","manual_kb_tag-gz-compressed-file","manual_kb_tag-import-sql-file","manual_kb_tag-database-upload-order","manual_kb_tag-restore-from-sql","manual_kb_tag-database-actions-menu","manual_kb_tag-mybox","manual_kb_tag-mysql-import","manual_kb_tag-restore-from-gz","manual_kb_tag-mybox-panel","manual_kb_tag-mysql-restore","manual_kb_tag-restore-sql-file","manual_kb_tag-database-export","manual_kb_tag-sql-gz-import","manual_kb_tag-mysql-database-restore","manual_kb_tag-database-backup","manual_kb_tag-compressed-sql-file","manual_kb_tag-restore-from-backup","manual_kb_tag-root-directory","manual_kb_tag-backup-subfolder","manual_kb_tag-mysql","manual_kb_tag-backup-directory","manual_kb_tag-databases","manual_kb_tag-panel-mybox","manual_kb_tag-mybox-com","manual_kb_tag-large-sql-import","manual_kb_tag-database","manual_kb_tag-sql-export-file","manual_kb_tag-file-upload","manual_kb_tag-phpmyadmin-alternative","manual_kb_tag-restore-database","manual_kb_tag-database-import-tutorial","manual_kb_tag-phpmyadmin","manual_kb_tag-restore-mysql-database","manual_kb_tag-database-import","manual_kb_tag-upload-database-file"],"_links":{"self":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb\/668","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":3,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb\/668\/revisions"}],"predecessor-version":[{"id":3862,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb\/668\/revisions\/3862"}],"wp:attachment":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/media?parent=668"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manualknowledgebasecat?post=668"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb_tag?post=668"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}