Closed Thread
Results 1 to 3 of 3

Thread: TXT to MySQL

  1. #1
    Warezov is offline Newbie
    Join Date
    Nov 2009
    Posts
    5
    Rep Power
    0

    TXT to MySQL

    hello all

    I have file something.txt where i have on every line one word. I have MySQl database witch have 2 columns. First collumn is primary key and the second is word from the something.txt. Why I do this?

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Warezov is offline Newbie
    Join Date
    Nov 2009
    Posts
    5
    Rep Power
    0

    Re: TXT to MySQL

    The wordlist have 7 044 000words.That is about 19Mb size.

  4. #3
    Jordan Guest

    Re: TXT to MySQL

    Usually a delimited file is used to import (CSV). I'm not sure if your file will import properly into two fields when you only have 1 word but you can try.

    Code:
    LOAD DATA INfile '/path/to/file' INTO TABLE <table> IGNORE 1 LINES
    Import CSV file directly into MySQL | MySQL | Tech-Recipes

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Use PDO for mysql or standar mysql functions?
    By lol33d in forum PHP Development
    Replies: 7
    Last Post: 05-07-2011, 08:41 PM
  2. Replies: 1
    Last Post: 10-20-2010, 12:38 AM
  3. [C#]MySQL] Host '****' is not allowed to connect to this MySQL server
    By ZaroX in forum Database & Database Programming
    Replies: 2
    Last Post: 02-16-2010, 08:34 PM
  4. Replies: 0
    Last Post: 01-26-2009, 11:14 AM
  5. MYSQL CheatSheet - A must for MySQL Users
    By reachpradeep in forum Database & Database Programming
    Replies: 1
    Last Post: 03-03-2007, 01:05 PM

Tags for this Thread

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