I have been able to create a text file on the MySQL host server using this technique.
However is there a way to progromatically incorporate the following into an application.
My application is a client web app. The user calls the web server executes the program and I would like the resulting .txt file to be stored on one of our network drives other than the MySQL data server.
The SELECT ... INTO OUTFILE statement is intended primarily to let you very quickly dump a table to a text file on the server machine.
If you want to create the resulting file on some client host other than the server host, you cannot use SELECT ... INTO OUTFILE. In that case, you should instead use a command such as mysql -e "SELECT ..." > file_name to generate the file on the client host.
Comment