|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
I have figured out how to import a tab delimited text file from the webserver directory into the MySQL database with the following:
LOAD DATA LOCAL INFILE '/home/www/textfile.txt' INTO TABLE tablename But am so far unable to export from a MySQL table into a text file on the web server. Last tried the following: SELECT * FROM tablename INTO LOCAL OUTFILE '/home/www/exporttext.txt' Any suggestions? Thanks. |
|
#2
|
|||
|
|||
|
Bob,
This command worked for me: select * into outfile '/home/www/myfile.txt' from <mytable>; This will save it on the server, so maybe you can ftp it out to your local computer? I've had troubles using the LOCAL keyword. Regards |
![]() |
| Viewing: Dev Shed Forums > Databases > MySQL Help > Export delimited text file |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|