Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 924341
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T19:20:12+00:00 2026-05-15T19:20:12+00:00

What is the best way to prepare the log files before inserting their values

  • 0

What is the best way to prepare the log files before inserting their values in the MYSQL database using

LOAD DATA INFILE ‘/tmp/someFile.txt’
INTO TABLE

How can I make sure and make the data log file ready to be read by such command ? Someone told me by scripting (using sed,grep,cat,sub …) .. how can I do that or what are the tools ?

I know how to place the file so MySQL can read it, but I want to know how to organize it and prepare its content for that.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T19:20:13+00:00Added an answer on May 15, 2026 at 7:20 pm

    You can use excel to setup your csv file correctly, or even calc from openoffice.

    Do you not have access to phpMyAdmin? This will make your job a little easier. Also try searching Google for “mysql import csv”. That should give you some information on how to layout your file.

    Remembering from when I did this using phpMyAdmin, you could have your data in 1 of 2 ways depending on your import settings.

    column_name_1 | column_name_2 | column_name_3
    value1_1      | value1_2      | value1_3
    value2_1      | value2_2      | value2_3
    

    Your csv for this would look like:

    column_name_1,column_name_2,column_name_3
    value1_1,value1_2,value1_3
    value2_1,value2_2,value2_3
    

    OR

    value1_1      | value1_2      | value1_3
    value2_1      | value2_2      | value2_3
    

    I hope that helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am looking for a way to reach my vision. What is the best
I am trying to import various pipe delimited files using php 5.2 into a
I need to prepare a blue print. It should be a video. A small
Is there anyway to synchronise client using cassandra built in functions? I need to
I'm looking to perform an FFT on a linear PCM audio file (with potentially
I want some advice on structuring some (basic) php code. I need to display
I have a class like the following: class DreamsImagesStore { public $table = 'dreams_images';
I have a c++ object that accepts sound requests and plays them with ALSA.
I see IoC and DI mentioned pretty much everywhere for ASP.NET MVC. While I'm
I have a three dimensional static const array that is acting as a lookup

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.