# Check the default location of secure_file_priv SHOW VARIABLES LIKE "secure_file_priv"; # Save the file in that location Select ... From ... INTO OUTFILE ...