Comments - INTO OUTFILE error 2

 
5 years, 2 months ago Daniel Black

Correct in assuming its the directory not found, verified by

$ perror 2
OS error code   2:  No such file or directory

The SELECT INTO OUTFILE implementation doesn't create directories. I'd assume that '/tmp/VoipBilling/CDR' exists but '/tmp/VoipBilling-' doesn't exist.

The date components of your query, the $ environment variables, aren't set in the current shell in which mysql is executed which is why they are empty.

 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.