Version of mysql is mysql Ver 14.14 Distrib 5.5.53, for Win64 (AMD64)
After running below commands, the output still goes to stdout
mysql -uroot -proot DBinstance
select * from tablename\G INTO OUTFILE 'c:\users\12345\Downloads\some_non_existingfile'
What is the problem with above command?
Edit:
I get below error after re-correcting the select query:
ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv opti
on so it cannot execute this statement
mysql> SHOW VARIABLES LIKE "secure_file_priv";
+------------------+-------+
| Variable_name | Value |
+------------------+-------+
| secure_file_priv | NULL |
+------------------+-------+
1 row in set (0.00 sec)
Currently G:\..\mysql> dir have folders bin, data, lib, scripts & tmp.