<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Danial Monachan on Medium]]></title>
        <description><![CDATA[Stories by Danial Monachan on Medium]]></description>
        <link>https://medium.com/@Danial_Monachan?source=rss-c6b47e8884c6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*-QIJV_0IoYnDxZ8oJ22R4w.png</url>
            <title>Stories by Danial Monachan on Medium</title>
            <link>https://medium.com/@Danial_Monachan?source=rss-c6b47e8884c6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 21:05:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Danial_Monachan/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Step by step guide for Setting up SQL Workbench to Import Raw Files.]]></title>
            <link>https://medium.com/@Danial_Monachan/step-by-step-guide-for-setting-up-sql-workbench-to-import-raw-files-60fac7c3c83?source=rss-c6b47e8884c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/60fac7c3c83</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[csv-file]]></category>
            <category><![CDATA[data-visualization]]></category>
            <dc:creator><![CDATA[Danial Monachan]]></dc:creator>
            <pubDate>Tue, 20 Jul 2021 06:35:52 GMT</pubDate>
            <atom:updated>2021-07-20T06:35:52.218Z</atom:updated>
            <content:encoded><![CDATA[<p>Importing Data from CSV to SQL Table</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/0*fLsSCNIyggj2JxI5.png" /></figure><p>The very first step of Data analysis is to load the data from its Raw form to A structured and readable format. I have been heavily dependent on SQL for Data Loading purposes as part of my projects.</p><p>SQL is a great tool for any beginner for getting started in the field of Data Science and Data Analytics. This article will cover a simple but a major requirement in the field of Data Science :<strong><em> Data Loading</em></strong></p><h3>Getting Started</h3><p>Before we get started, if you are reading this Article you may be already have Workbench installed in your System. If you don’t, just download it from the following.</p><p><strong><em>Installation Links: </em></strong><a href="https://dev.mysql.com/downloads/windows/installer/5.7.html"><strong><em>Windows</em></strong></a><strong><em> , </em></strong><a href="https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-18-04"><strong><em>Ubuntu/ Debian</em></strong></a>, <a href="https://dev.mysql.com/downloads/mysql/5.7.html"><strong><em>MacOS</em></strong></a><strong><em>.</em></strong></p><p>Now, we have our Workbench Ready and running, let’s get Started.</p><h3>Loading The Raw Data to SQL Table.</h3><p>We are going to use Customer Dataset as an example for this Tutorial.</p><p><a href="https://github.com/Danialmonachan11/Customer_dataset_m">Click here to Download the Dataset.</a></p><h3><strong>Creating a Table</strong></h3><p>Now, as we have downloaded the Dataset we need to create the Table to store the Data we import.</p><pre>create Table Customer(ID bigint(6),<br>                      Credit_Limit bigint(6),<br>                      Gender bigint(6),<br>                      Education bigint(6),<br>                      Marital_Status bigint(6),<br>                      AGE_in_Years bigint(6),<br>                      CustomerCategory varchar(34)<br>                      );</pre><p>Great!! Now we have the Table created lets import the Data.</p><h3><strong>Importing the Data</strong></h3><p>In the Workbench Click on Database Tab as shown.</p><p>NOTE: Next few steps are to be followed if you have never imported any file through Workbench to Tables. Also, it is a one time job you don’t have to repeat it every time you wish to import new files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/527/1*VJo2nSRcMawePFIpPOUkiQ.png" /><figcaption>Step 1</figcaption></figure><p>Then Click on <strong>Manage Connections</strong>.</p><p>The Following Window appears.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*J26B623NJl2WPPDPak1sag.png" /><figcaption>Step 2</figcaption></figure><p>Click on<strong> Local Instance</strong> under the MySQL connections in the Top left.</p><p>Now Under<strong> Parameters</strong> Selec<strong>t Advanced </strong>as shown.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*T2gL3jM8wzYqHEFQ-I0vrg.png" /><figcaption>Step 3</figcaption></figure><p>Now, in the <strong>Others </strong>area write the following as shown above.</p><pre>OPT_LOCAL_INFILE=1</pre><p>Then Press on Test Connection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*XVcWswZbpoKgZoclhtAdkQ.png" /><figcaption>Step 4</figcaption></figure><p>Even after all these Steps if you are still unable to import the Data, Try to run the following code.</p><pre>Set Global local_infile = &quot;ON&quot;;<br>show variables like &quot;local_infile&quot;;</pre><p>Now you are all set to load external Files To the Customer Table we Created.</p><p><strong>Code to import Data from CSV to Table</strong></p><pre>load data local infile &quot;C:/Users/danny/Desktop/Book1.csv&quot;<br>into table Customer columns terminated by &quot;,&quot;<br>optionally enclosed by &quot;&#39;&quot;<br>ignore 1 lines</pre><p>That is it!!! We can now try to analyze the Data stored in the table and try to Come up with some observations.</p><h3>Checking if the Data is loaded or not</h3><pre>select * from Customer limit 5;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/597/1*2DULKa4AiXvlgKyIZvRJlw.png" /><figcaption>TOP 5 Rows from the Table</figcaption></figure><p>And there you are!!! We have successfully managed to import Data from a CSV file to a Table.</p><p>Thanks for reading! If you liked this article, feel free to follow my profile for other pieces, where I am planning to include more articles on Data Engineering, Data Science, and Data Visualization topics and projects.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=60fac7c3c83" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>