I am trying to run the following in a MySQL database:
SELECT * FROM mysql.db INTO OUTFILE "C:\ProgramData\MySQL\MySQL Server 5.7\Uploads\db.csv" FIELDS TERMINATED BY '|' ENCLOSED BY '"' LINES TERMINATED BY '\n';
I get an error:
SQL Error (1290): The MySQL server is running with the --secure-file-priv option so it cannot execute this statement
When I run the following:
mysql> SELECT @@secure_file_priv;
I get:
+
So why doesn't it export the file, although I use the specified location --secure-file-priv?
I am used to MSSQL and new to MySQL.
source share