+ Reply to Thread
Results 1 to 3 of 3

Importing Excel .csv into MySQL

  1. #1
    Forum Contributor
    Join Date
    10-12-2018
    Location
    Leesburg, FL
    MS-Off Ver
    2013
    Posts
    113

    Importing Excel .csv into MySQL

    I'm completely new to the DB aspect of programming, but not to programming itself. I have an Excel .csv file that I want to import into MySQL. From what I understand, I need to create a table in MySQL first with all the column headings and data types that are contained in the .csv file. Once this empty table is created, I would like to populate it with the data in the .csv file. It looks like Excel has a feature called "MySQL for Excel" that can be used, but when I select it states that my DB connections will be migrated to use MySQL Workbench and I wasn't sure if that was something I wanted to do. If I wanted to write code to process the file, could it be done using vba or is a scripting language required? Most of the work I have done has been writing macros using vba, but have never had to associate it with a DB until now. Could someone help me with this process or suggest a site I could use for reference?

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: Importing Excel .csv into MySQL

    https://dev.mysql.com/doc/refman/8.0/en/load-data.html
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Contributor
    Join Date
    10-12-2018
    Location
    Leesburg, FL
    MS-Off Ver
    2013
    Posts
    113

    Re: Importing Excel .csv into MySQL

    Thanks! I actually came across this myself earlier.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. mysql excel 356
    By pccamara in forum Office 365
    Replies: 0
    Last Post: 07-11-2016, 05:39 AM
  2. Importing Excel to MySQL on MAC OS X 10.10.2
    By adithyaroshan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-19-2015, 09:26 AM
  3. VBA excel, MySQL DB
    By murugavelmsc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-03-2012, 09:23 AM
  4. importing numbers from MYSQL truncates data
    By jkzfixme in forum Excel General
    Replies: 0
    Last Post: 08-04-2010, 03:34 PM
  5. mysql and Excel
    By jamiguel77 in forum Excel General
    Replies: 1
    Last Post: 07-14-2008, 09:09 AM
  6. from excel to mysql
    By excelMySql1 in forum Excel General
    Replies: 0
    Last Post: 05-20-2007, 09:57 PM
  7. Replies: 2
    Last Post: 02-23-2006, 07:10 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1