{"id":727,"date":"2020-07-26T08:58:15","date_gmt":"2020-07-26T08:58:15","guid":{"rendered":"https:\/\/hostingspell.com\/blog\/?p=727"},"modified":"2020-07-26T08:58:18","modified_gmt":"2020-07-26T08:58:18","slug":"how-to-import-and-export-database-in-phpmyadmin","status":"publish","type":"post","link":"https:\/\/blog.hostingspell.com\/how-to-import-and-export-database-in-phpmyadmin\/","title":{"rendered":"How to import and export database in PhpMyAdmin"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><em>PhpMyAdmin<\/em>&nbsp;is a graphical interface, an open-source tool pre-installed with your hosting subscription. You can wade through your database to make preferred changes.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">All the data on your website is stored in a database. For example, all your posts and articles, including, the comments are stored by WordPress in a database.<\/p>\n\n\n\n<p class=\"has-text-color has-theme-primary-color wp-block-paragraph\"><em>Note- It is not possible to undo the modifications. Be cautious while working in <strong>phpMyAdmin.<\/strong>&nbsp;<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 1.<\/strong> Control panel<\/p>\n\n\n\n<ol style=\"font-family:Arial\" class=\"has-custom-font wp-block-list\"><li>Log into your <strong>Cpanel.<\/strong><\/li><li>Choose&nbsp;<em><strong>phpMyAdmin<\/strong><\/em>.<\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 2. <\/strong>Database selection<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/hostingspell.com\/blog\/wp-content\/uploads\/2020\/07\/crop-50-34-616-417-0-en_database-phpmyadmin.png\" alt=\"\" class=\"wp-image-749\" width=\"674\" height=\"457\" srcset=\"https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2020\/07\/crop-50-34-616-417-0-en_database-phpmyadmin.png 616w, https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2020\/07\/crop-50-34-616-417-0-en_database-phpmyadmin-300x203.png 300w\" sizes=\"auto, (max-width: 674px) 100vw, 674px\" \/><\/figure>\n\n\n\n<ol style=\"font-family:Arial\" class=\"has-custom-font wp-block-list\"><li>In the<strong> phpMyAdmin<\/strong> section, click and choose the database you want to access.<\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 3.<\/strong> Managing your database<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can manage your database on the new window that shows up in phpMyAdmin. To access the individual tables in the database, click <strong>\u2018+\u2019<\/strong> sign.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now that you have access to your database, let us learn how to import the database.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How to import database<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 1.<\/strong> Choose\/ click the name of the database you wish to import.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 2<\/strong>. Find and select the <strong>\u2018Import\u2019<\/strong> option.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 3. <\/strong>Choose the required database file in the <strong>\u2018choose file\u2019<\/strong> section. And click on the <strong>\u2018Go\u2019 <\/strong>option.<\/p>\n\n\n\n<p class=\"has-text-color has-theme-primary-color wp-block-paragraph\"><em>Note \u2013 this file is necessarily a .sql or .zip file.<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 4.<\/strong> Finishing<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">At this point, the import should be over. You will see a message on your screen, verifying the import.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There should be tables in the column to the left in phpMyAdmin, confirming a successful import.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now, it is important to backup your database if your website is using a database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Let us look at how to back up this database with these following steps;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How to backup the database<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 1.<\/strong> Click on the name of the database you wish to export.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 2.<\/strong> Click on the <strong>\u2018Export\u2019 <\/strong>option.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Ste<strong>p 3.<\/strong> Choose <strong>&#8216;Custom \u2013 display all possible options\u2019<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 4.<\/strong> Select the tables you wish to export.&nbsp;<em>Selecting all the tables is recommended.&nbsp;<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 5.<\/strong> Scroll down to<strong>&nbsp;<em>Format- specific option<\/em><\/strong>&nbsp;and find&nbsp;<em><strong>\u2018Object creation options\u2019<\/strong>.&nbsp;<\/em>Check the box next to \u2018<strong>Add DROP TABLE\/ VIEW\/ PROCEDURE\/ FUNCTION\/ EVENT statement\u2019<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 6.<\/strong> Click on the <strong>\u2018Go\u2019<\/strong> option.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The exported tables will be saved as a file, named&nbsp;<strong><em>_.sql<\/em><\/strong><em>. You can&nbsp;<\/em>always import this file back into the database as required.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PhpMyAdmin&nbsp;is a graphical interface, an open-source tool pre-installed with your hosting subscription. You can wade through your database to make preferred changes. All the data on your website is stored in a database. For example, all your posts and articles, including, the comments are stored by WordPress in a database. Note- It is not possible [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":732,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-727","post","type-post","status-publish","format-standard","has-post-thumbnail","category-general","entry"],"featured_image_src":"https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2020\/07\/PhpMyAdmin-Logo.wine_.png","featured_image_src_square":"https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2020\/07\/PhpMyAdmin-Logo.wine_.png","author_info":{"display_name":"Nikitha S.","author_link":"https:\/\/blog.hostingspell.com\/author\/nikitha\/"},"uagb_featured_image_src":{"full":["https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2020\/07\/PhpMyAdmin-Logo.wine_.png",3000,2000,false],"thumbnail":["https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2020\/07\/PhpMyAdmin-Logo.wine_-150x150.png",150,150,true],"medium":["https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2020\/07\/PhpMyAdmin-Logo.wine_-300x200.png",300,200,true],"medium_large":["https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2020\/07\/PhpMyAdmin-Logo.wine_-768x512.png",768,512,true],"large":["https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2020\/07\/PhpMyAdmin-Logo.wine_-1024x683.png",1024,683,true],"1536x1536":["https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2020\/07\/PhpMyAdmin-Logo.wine_-1536x1024.png",1536,1024,true],"2048x2048":["https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2020\/07\/PhpMyAdmin-Logo.wine_-2048x1365.png",2048,1365,true],"single-featured-image":["https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2020\/07\/PhpMyAdmin-Logo.wine_-1200x385.png",1200,385,true],"blog-featured-image":["https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2020\/07\/PhpMyAdmin-Logo.wine_-680x290.png",680,290,true],"home-featured":["https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2020\/07\/PhpMyAdmin-Logo.wine_-380x570.png",380,570,true],"ab-block-post-grid-landscape":["https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2020\/07\/PhpMyAdmin-Logo.wine_.png",600,400,false],"ab-block-post-grid-square":["https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2020\/07\/PhpMyAdmin-Logo.wine_.png",600,400,false],"author-pro-image":["https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2020\/07\/PhpMyAdmin-Logo.wine_.png",360,240,false],"gb-block-post-grid-landscape":["https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2020\/07\/PhpMyAdmin-Logo.wine_.png",600,400,false],"gb-block-post-grid-square":["https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2020\/07\/PhpMyAdmin-Logo.wine_.png",600,400,false]},"uagb_author_info":{"display_name":"Nikitha S.","author_link":"https:\/\/blog.hostingspell.com\/author\/nikitha\/"},"uagb_comment_info":0,"uagb_excerpt":"PhpMyAdmin&nbsp;is a graphical interface, an open-source tool pre-installed with your hosting subscription. You can wade through your database to make preferred changes. All the data on your website is stored in a database. For example, all your posts and articles, including, the comments are stored by WordPress in a database. Note- It is not possible&hellip;","_links":{"self":[{"href":"https:\/\/blog.hostingspell.com\/wp-json\/wp\/v2\/posts\/727","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.hostingspell.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.hostingspell.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.hostingspell.com\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.hostingspell.com\/wp-json\/wp\/v2\/comments?post=727"}],"version-history":[{"count":0,"href":"https:\/\/blog.hostingspell.com\/wp-json\/wp\/v2\/posts\/727\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.hostingspell.com\/wp-json\/wp\/v2\/media\/732"}],"wp:attachment":[{"href":"https:\/\/blog.hostingspell.com\/wp-json\/wp\/v2\/media?parent=727"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.hostingspell.com\/wp-json\/wp\/v2\/categories?post=727"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.hostingspell.com\/wp-json\/wp\/v2\/tags?post=727"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}