I am trying to export mysql table data to csv file using batch file. It works on the screen but not able to ouptut to a csv file.
@echo off
" C:\ProgramFiles\MYSQL\MYSQL Workbench 6.3 CE\mysql.exe" mysql -uroot -ppassword -e "select plate form SWP;" > \output.csv
pause
exit
\output.csvwierd path looks to me as a invalid windows path. Use more something likeC:/output.cvs\output.csvpoints to the fileoutput.csvin the current drive; it is valid, but might be unintended; usingC:/output.csvis not recommended (though it might work) as the Windows path separator is\....\output.csv, which is equivalent tooutput.csv...