Database
  Home arrow Database arrow Converting Your Excel Worksheet into a Wor...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
DATABASE

Converting Your Excel Worksheet into a Working MySQL Database
By: Codex-M
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 9
    2009-04-28

    Table of Contents:
  • Converting Your Excel Worksheet into a Working MySQL Database
  • Conversion requirements and restrictions
  • Exact steps in the XAMPP phpmyadmin panel
  • Exact steps in an online MySQL server (where direct file import is not allowed)

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Converting Your Excel Worksheet into a Working MySQL Database


    (Page 1 of 4 )

    Microsoft Excel is the world's most popular and common spreadsheet office applications software. It is used to store and manipulate data in engineering, IT and business sectors. Thanks in part to the popularity of the Internet and certain kinds of web sites, many business owners find that they need to convert their Excel spreadsheets into proper MySQL databases. This article will show you how to do this, without forcing you to purchase additional software.

    Background and importance

    Business owners often define their data using MS Excel because it is common and easy to manipulate. When they want to convert their MS Excel workbook into a working MySQL database, however, problems arise. For a database to be used in a dynamically-driven website, as is frequently done today, it needs to be in a MySQL file extension; otherwise, it will not work. MySQL is the most popular open source database and commonly used in conjunction with the PHP scripting language to command website operations, as in E-commerce websites. 

    An important database in Excel that can be exported into MySQL can be anything a website owner or developer can think of, from a price list database to customer information to contact information; virtually anything you find important enough to store in MS Excel also means it's important to put it in a MySQL database. 

    When you are a beginner or unfamiliar with MySQL, if you do a search in Google for “Convert MS Excel to MySQL” you will find that the top search results are for programs or software for sale. This means it will cost you to convert. The objective of this tutorial is to teach you the basics of how to convert or export a database in MS Excel into a working MySQL database without ever spending any money out of your pocket.

    Let us discuss the database basics. 

    Basic principles 

    A database is a collection of information to be used in processing other information. In MS Excel, you have two things, as you know very well: 

    • Workbook

    • Worksheets 

    A workbook comprises several worksheets. For example, you have a workbook entitled “Movie” with three worksheets named:  

    • Best Movies by Year (with two columns, year and top movies in that year).

    • Released Movies by Rating (with two columns, movie title and its equivalent rating).

    • Worst Movies by Directors (with two columns, director name and their worst movie released). 

    When you export the data into MySQL, it will now be called “database” and “table.” The database consists of tables, and applying the concept of data structures, it will now be:

    MS Excel “Workbook" -> MySQL “Database”

    MS Excel “Worksheet” -> MySQL “Table” 

    Do you see and understand the analogy? In order to convert MS Excel data into MySQL, make sure you convert it according to proper data structures. 

    Therefore, for the above MS Excel example, you need first to create a database named “Movie,” and then create tables after that. Just as in Excel, you cannot create or name a worksheet without opening or saving the workbook first. 

    More Database Articles
    More By Codex-M


       · Thanks a heap for this article and for the free online converter.... I was trying to...
       · Thanks, it is great to know.Cheers.
     

    DATABASE ARTICLES

    - Converting Your Excel Worksheet into a Worki...
    - Excel Reference
    - Database Programming in C# with MySQL : Usin...
    - Formatting Techniques for Data Access from E...
    - Data Access from Excel VBA
    - Generating a Multiple Table Crystal Report u...
    - ADO and the Command Object
    - On Wiring Up an ADO Data Control
    - Reading and Writing to Files on the Intranet
    - Using ADO Record to Create and Navigate Intr...
    - Using Data Access Pages to Access Data on a ...
    - Using ADO with the SQL Native Client
    - ADO`s Stream Object
    - Opening a Record Object Referencing an Open ...
    - Introducing Jasper (SQL Anywhere 10 Beta)





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    Stay green...Green IT