DIGIT-ARC read-only archive · snapshot: July 23, 2026

linux n mysql

6 posts · originally from https://geek.digit.in/community/threads/linux-n-mysql.93249/

D
dhawalsant Original post #1
Jul 17, 2008 at 9:44 AM
friends..

i m a novice user of linux, as i have just started learning it during my summer internship.

i m developing a project in linux which includes connectivity to mysql.

i am having data in .txt files and want to insert it into MySql database table.

please help me out how can i do this?

sorry , if you think it is a very silly ques.. but jst remember that i m a newbie to linux.
pls help...
ahref
ahref #2
Jul 17, 2008 at 9:20 PM
change it to csv and use query

load data local "filename.txt" ....
din
din #3
Jul 17, 2008 at 10:10 PM
You can also use phpmyadmin which is a web interface for managing mysql. Pretty easy.
D
Jul 23, 2008 at 2:54 PM
thanks guys,,,,

n yes can u tell me the use of "local" in this command
~Phenom~
Jul 25, 2008 at 9:54 AM
LOAD DATA INFILE "filename.txt" INTO TABLE tablename FIELDS TERMINATED BY ',';

Modify it to suit your needs. And, in ubuntu the filename.txt should be placed in /var/lib/mysql/your_db_name or where mysql is installed.