me,myself,english and programming..

How To Export CSV to MySQL using Pentaho

There are so may ways to populate your CSV file into MySQL table. Today I will share how to do this task easily with Pentaho.

Previously I upload the csv file containing malaysia postcode here hence I will use this file as my sample for this tutorial.

1. Create new transformation (I’m assuming that you know how to open up this application)

2009-01-18 101430

2. Drag CSV file input to Transformation area

2009-01-18 101516

3. Double click CSV file input and Browse the source file.

Once the source file is in place, click the Get Fields button.

Name,Type,Length will auto populate based on the file contain. Change it accordingly.

2009-01-18 101649

4. Once the source file is ready, drag the Table Output to the transformation area.

Click both the file input and table output at the same time right click to create New Hop

2009-01-18 114221

 

2009-01-18 110816

5. Double click table output and create new connection.

2009-01-18 110920

 

2009-01-18 110943

2009-01-18 111007

6. Once the connection is define properly,click the SQL button

and Execute the SQL Statement to create the output table

2009-01-18 111042

7. Run the transformation.

2009-01-18 111059

2009-01-18 111117

8. Execution results.

2009-01-18 111152

9. Check the result from mysql console.

2009-01-18 115839

I’ve convert this tutorial into movie format. You can have a look it here. Sorry for the quality of the movie is not good. :(

Till then,Adioss.

ps :

This is my first post in year 2009. I’m expecting my work life is getting much more busier in this few months.

  1. 3 Responses to “How To Export CSV to MySQL using Pentaho”

  2. By Gerg on Feb 10, 2009 | Reply

    ehehhe.. glad u still here ;)

  3. By arejae on Feb 16, 2009 | Reply

    wah..gerg,my friend..im still here bro..tapi bz gilos lah..blog pun tak sompek nak hupdate. im glad you are back too. :)

  4. By Gerg on Feb 17, 2009 | Reply

    rajin rajin laa update .. aku layan jek kekadang :D

Post a Comment