Click here to Skip to main content
15,887,962 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello
i want to write CSV file from mysql statment

SQL
SELECT * FROM dim_warehouses INTO OUTFILE 'D:/LocalFileTest.csv'


but the file has been written into server drive not local machine

please i want to save the csv file on user's machine not on Remote Connection

Thanks alot
Posted

1 solution

The server has to have access to wherever you want to save it. So, you could map a drive from the server to the client or you'll need to manually copy it later or perhaps get a script to copy it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900