I am using the following query to create a CSV file
SELECT email INTO OUTFILE \"mydata.csv\" FIELDS TERMINATED BY \',\' OPTIONALLY ENCLOSED BY \'\"\' LINES
+1 to @michael-berkowski and the answer i needed for windows was (as he stated)
MariaDB's data directory
to be specific, mine was in the data folder for database named "mydatabase"
C:\Program Files\MariaDB 10.3\data\mydatabase