The following command:
select *
INTO OUTFILE '\home\user1\NetBeansProjects\project1\dumps\theData.csv'
FIELDS TERMINATED by ','
LINES TERMINATED BY '\n'
from database1
Does not write a file called theData.csv to the specified directory.
The path doesn't seem write - if you are on Linux server then I would expect the path with contains slashes and not backslashes, if you are on Windows machine I would expect the driver letter to appears somewhere (and you can't write on a network folder - just local to the DB server machine).
Also, just to eliminate permissions issue or trying to override existing file, try to write to '/tmp/non_existing_file.csv'.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With