Link to home
Start Free TrialLog in
Avatar of shopjd
shopjd

asked on

mysql sqlyog

mysql> LOAD DATA LOCAL INFILE 'member.txt' INTO TABLE member;

how do I do this command
also where does 'member.txt' have to be located

c:\member.txt
   
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

you have to start any tool that can run mysql statements.
that can be mysql command line (dos or unix prompt), that is what mysql> refers to...

and for a specific location, well, just specify it:
LOAD DATA LOCAL INFILE 'c:/member.txt' INTO TABLE member;

Open in new window

Avatar of shopjd
shopjd

ASKER

would this command also work for a .sql file
if you want to "run" what you have a sql statements in a .sql file, you need to do this:
http://dev.mysql.com/doc/refman/5.1/en/mysql.html
mysql {connection parameters here}  < yoursqlfile.sql

Open in new window

Avatar of shopjd

ASKER

the file name is c:\create.sql

I am using sqlyog query editor

what would I type
as I don't use sqlyog, I am not sure.
I presume you need to use a "file -> open" command to open that file in the query browser, and the "run" it ...
Avatar of shopjd

ASKER

if I use windows cmd
and naviagate to mysql

what would I type in
Avatar of shopjd

ASKER

what should I put for
{connection parameters here}
ASKER CERTIFIED SOLUTION
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial