{"id":1497,"date":"2017-04-23T11:18:13","date_gmt":"2017-04-23T09:18:13","guid":{"rendered":"http:\/\/www.ybierling.com\/v2\/?p=1497"},"modified":"2018-05-31T12:55:41","modified_gmt":"2018-05-31T10:55:41","slug":"how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin","status":"publish","type":"post","link":"https:\/\/www.ybierling.com\/v2\/en\/how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin\/","title":{"rendered":"How to import an Excel file in a MySQL database in PHPMyAdmin"},"content":{"rendered":"<p>It is sometimes easier to work on some data in <strong><a class=\"zem_slink\" title=\"Microsoft Excel\" href=\"http:\/\/en.wikipedia.org\/wiki\/Microsoft_Excel\" target=\"_blank\" rel=\"noopener wikipedia\">Excel<\/a><\/strong>, before importing in a <strong><a class=\"zem_slink\" title=\"MySQL\" href=\"http:\/\/www.mysql.com\" target=\"_blank\" rel=\"homepage noopener\">MySQL<\/a><\/strong> database.<\/p>\n<p>In order to do so, here are a few simple steps.<\/p>\n<p>In short : export the <strong>Excel<\/strong> file to <strong>CSV<\/strong>, and <a class=\"zem_slink\" title=\"Import\" href=\"http:\/\/en.wikipedia.org\/wiki\/Import\" target=\"_blank\" rel=\"noopener wikipedia\">import<\/a> the <strong>CSV<\/strong> in a new table using the <strong><a class=\"zem_slink\" title=\"phpMyAdmin\" href=\"http:\/\/www.phpmyadmin.net\/\" target=\"_blank\" rel=\"homepage noopener\">PHPMyAdmin<\/a><\/strong> interface.<\/p>\n<p>Starting with an <strong>Excel<\/strong>, in below example one sheet containing some data<\/p>\n<blockquote>\n<figure id=\"attachment_1498\" aria-describedby=\"caption-attachment-1498\" style=\"width: 259px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2017\/04\/how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin-excel-sheet-with-data.png\" target=\"_blank\" rel=\"noopener\"><img fetchpriority=\"high\" decoding=\"async\" class=\"wp-image-1498 size-medium\" src=\"http:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2017\/04\/how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin-excel-sheet-with-data-259x300.png\" alt=\"How to import an Excel file in a MySQL database in PHPMyAdmin : Excel sheet with data\" width=\"259\" height=\"300\" srcset=\"https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2017\/04\/how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin-excel-sheet-with-data-259x300.png 259w, https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2017\/04\/how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin-excel-sheet-with-data.png 368w\" sizes=\"(max-width: 259px) 100vw, 259px\" \/><\/a><figcaption id=\"caption-attachment-1498\" class=\"wp-caption-text\">Excel sheet with data<\/figcaption><\/figure><\/blockquote>\n<p>Select <em><a class=\"zem_slink\" title=\"File manager\" href=\"http:\/\/en.wikipedia.org\/wiki\/File_manager\" target=\"_blank\" rel=\"noopener wikipedia\">Save As<\/a><\/em> to be able to select another format<\/p>\n<blockquote>\n<figure id=\"attachment_1499\" aria-describedby=\"caption-attachment-1499\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2017\/04\/how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin-excel-option-save-as.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"wp-image-1499 size-medium\" src=\"http:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2017\/04\/how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin-excel-option-save-as-300x256.png\" alt=\"How to import an Excel file in a MySQL database in PHPMyAdmin : Excel option Save as\" width=\"300\" height=\"256\" srcset=\"https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2017\/04\/how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin-excel-option-save-as-300x256.png 300w, https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2017\/04\/how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin-excel-option-save-as.png 500w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-1499\" class=\"wp-caption-text\">Excel option Save as<\/figcaption><\/figure><\/blockquote>\n<p>Scroll down to the <em>CSV (Comma delimited) (*.csv)<\/em> format<\/p>\n<blockquote>\n<figure id=\"attachment_1500\" aria-describedby=\"caption-attachment-1500\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2017\/04\/how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin-finding-the-csv-comma-separated-format.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"wp-image-1500 size-medium\" src=\"http:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2017\/04\/how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin-finding-the-csv-comma-separated-format-300x190.png\" alt=\"How to import an Excel file in a MySQL database in PHPMyAdmin : Finding the CSV comma separated format\" width=\"300\" height=\"190\" srcset=\"https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2017\/04\/how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin-finding-the-csv-comma-separated-format-300x190.png 300w, https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2017\/04\/how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin-finding-the-csv-comma-separated-format-768x485.png 768w, https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2017\/04\/how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin-finding-the-csv-comma-separated-format.png 801w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-1500\" class=\"wp-caption-text\">Finding the CSV comma separated format<\/figcaption><\/figure><\/blockquote>\n<p>Confirm that some features will be lost &#8211; <strong>CSV<\/strong> being a text format, no <strong>Excel<\/strong> specifics will be exported (functions, programs, &#8230;)<\/p>\n<blockquote>\n<figure id=\"attachment_1501\" aria-describedby=\"caption-attachment-1501\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2017\/04\/how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin-confirm-the-loss-of-excel-specific-functions.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1501 size-medium\" src=\"http:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2017\/04\/how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin-confirm-the-loss-of-excel-specific-functions-300x66.png\" alt=\"How to import an Excel file in a MySQL database in PHPMyAdmin : Confirm the loss of Excel specific functions\" width=\"300\" height=\"66\" srcset=\"https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2017\/04\/how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin-confirm-the-loss-of-excel-specific-functions-300x66.png 300w, https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2017\/04\/how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin-confirm-the-loss-of-excel-specific-functions.png 528w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-1501\" class=\"wp-caption-text\">Confirm the loss of Excel specific functions<\/figcaption><\/figure><\/blockquote>\n<p>In <strong>PHPMyAdmin<\/strong>, go to the <em>Import<\/em> menu<\/p>\n<blockquote>\n<figure id=\"attachment_1502\" aria-describedby=\"caption-attachment-1502\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2017\/04\/how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin-import-menu-in-phpmyadmin.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1502 size-medium\" src=\"http:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2017\/04\/how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin-import-menu-in-phpmyadmin-300x70.png\" alt=\"How to import an Excel file in a MySQL database in PHPMyAdmin : Import menu in PHPMyAdmin\" width=\"300\" height=\"70\" srcset=\"https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2017\/04\/how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin-import-menu-in-phpmyadmin-300x70.png 300w, https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2017\/04\/how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin-import-menu-in-phpmyadmin-768x180.png 768w, https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2017\/04\/how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin-import-menu-in-phpmyadmin.png 840w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-1502\" class=\"wp-caption-text\">Import menu in PHPMyAdmin<\/figcaption><\/figure><\/blockquote>\n<p>Browse for the <strong>CSV<\/strong> file recently saved, and select the appropriate format<\/p>\n<blockquote>\n<figure id=\"attachment_1503\" aria-describedby=\"caption-attachment-1503\" style=\"width: 252px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2017\/04\/how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin-browse-for-local-file-and-select-appropriate-csv-format.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1503 size-medium\" src=\"http:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2017\/04\/how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin-browse-for-local-file-and-select-appropriate-csv-format-252x300.png\" alt=\"How to import an Excel file in a MySQL database in PHPMyAdmin : Browse for local file and select appropriate CSV format\" width=\"252\" height=\"300\" srcset=\"https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2017\/04\/how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin-browse-for-local-file-and-select-appropriate-csv-format-252x300.png 252w, https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2017\/04\/how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin-browse-for-local-file-and-select-appropriate-csv-format.png 633w\" sizes=\"(max-width: 252px) 100vw, 252px\" \/><\/a><figcaption id=\"caption-attachment-1503\" class=\"wp-caption-text\">Browse for local file and select appropriate CSV format<\/figcaption><\/figure><\/blockquote>\n<p>Look for other options that might apply, for example, if columns have names, check the corresponding option &#8220;<em>The first line of the file contains the table column names<\/em>&#8220;, and click <em>Go<\/em><\/p>\n<blockquote>\n<figure id=\"attachment_1504\" aria-describedby=\"caption-attachment-1504\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2017\/04\/how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin-csv-import-specific-options.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1504 size-medium\" src=\"http:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2017\/04\/how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin-csv-import-specific-options-300x151.png\" alt=\"How to import an Excel file in a MySQL database in PHPMyAdmin : CSV import specific options\" width=\"300\" height=\"151\" srcset=\"https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2017\/04\/how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin-csv-import-specific-options-300x151.png 300w, https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2017\/04\/how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin-csv-import-specific-options-768x388.png 768w, https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2017\/04\/how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin-csv-import-specific-options-700x350.png 700w, https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2017\/04\/how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin-csv-import-specific-options.png 830w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-1504\" class=\"wp-caption-text\">CSV import specific options<\/figcaption><\/figure><\/blockquote>\n<p>Import confirmation should be displayed, and links to the resulting database and table will be shown<\/p>\n<blockquote>\n<figure id=\"attachment_1505\" aria-describedby=\"caption-attachment-1505\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2017\/04\/how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin-import-results-with-links-to-database-and-table.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1505 size-medium\" src=\"http:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2017\/04\/how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin-import-results-with-links-to-database-and-table-300x145.png\" alt=\"How to import an Excel file in a MySQL database in PHPMyAdmin : Import results with links to database and table\" width=\"300\" height=\"145\" srcset=\"https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2017\/04\/how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin-import-results-with-links-to-database-and-table-300x145.png 300w, https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2017\/04\/how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin-import-results-with-links-to-database-and-table.png 764w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-1505\" class=\"wp-caption-text\">Import results with links to database and table<\/figcaption><\/figure><\/blockquote>\n<p>It is now possible to browse through the table !<\/p>\n<blockquote>\n<figure id=\"attachment_1506\" aria-describedby=\"caption-attachment-1506\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2017\/04\/how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin-database-display.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1506 size-medium\" src=\"http:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2017\/04\/how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin-database-display-300x240.png\" alt=\"How to import an Excel file in a MySQL database in PHPMyAdmin : Database display\" width=\"300\" height=\"240\" srcset=\"https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2017\/04\/how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin-database-display-300x240.png 300w, https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2017\/04\/how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin-database-display-768x614.png 768w, https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2017\/04\/how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin-database-display.png 896w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-1506\" class=\"wp-caption-text\">Database display<\/figcaption><\/figure><\/blockquote>\n<p>Using the diverse options, it is also possible to work on the table structure, content, or to move it to another database<\/p>\n<blockquote>\n<figure id=\"attachment_1507\" aria-describedby=\"caption-attachment-1507\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2017\/04\/how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin-database-structure.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1507 size-medium\" src=\"http:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2017\/04\/how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin-database-structure-300x110.png\" alt=\"How to import an Excel file in a MySQL database in PHPMyAdmin : Database structure\" width=\"300\" height=\"110\" srcset=\"https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2017\/04\/how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin-database-structure-300x110.png 300w, https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2017\/04\/how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin-database-structure.png 765w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-1507\" class=\"wp-caption-text\">Database structure<\/figcaption><\/figure><\/blockquote>\n<h3 class=\"zemanta-related-title\">More Excel tutorials<\/h3>\n<p><a href=\"https:\/\/digital.com\/blog\/excel-tutorials\/\" target=\"_blank\" rel=\"noopener\">40 Life-Changing Excel Tutorials &#8211; digital.com<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>It is sometimes easier to work on some data in Excel, before importing in a MySQL database. In order to<\/p>\n","protected":false},"author":1,"featured_media":1505,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[576],"tags":[709,770,499,33,303,5683,1928,5691,5685,5687,620,1357,624,892,2036,1042,618,5689],"class_list":["post-1497","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-web","tag-content","tag-data","tag-database","tag-en","tag-excel","tag-how-to-import-an-excel-file-in-a-mysql-database-in-phpmyadmin","tag-import","tag-import-excel-file-in-mysql","tag-import-excel-in-mysql","tag-import-excel-in-phpmyadmin","tag-mysql","tag-option","tag-phpmyadmin","tag-sheet","tag-structure","tag-table","tag-web","tag-worksheet"],"_links":{"self":[{"href":"https:\/\/www.ybierling.com\/v2\/wp-json\/wp\/v2\/posts\/1497","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ybierling.com\/v2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ybierling.com\/v2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ybierling.com\/v2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ybierling.com\/v2\/wp-json\/wp\/v2\/comments?post=1497"}],"version-history":[{"count":3,"href":"https:\/\/www.ybierling.com\/v2\/wp-json\/wp\/v2\/posts\/1497\/revisions"}],"predecessor-version":[{"id":2266,"href":"https:\/\/www.ybierling.com\/v2\/wp-json\/wp\/v2\/posts\/1497\/revisions\/2266"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ybierling.com\/v2\/wp-json\/wp\/v2\/media\/1505"}],"wp:attachment":[{"href":"https:\/\/www.ybierling.com\/v2\/wp-json\/wp\/v2\/media?parent=1497"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ybierling.com\/v2\/wp-json\/wp\/v2\/categories?post=1497"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ybierling.com\/v2\/wp-json\/wp\/v2\/tags?post=1497"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}