I tried loading data from a file but got ERROR 1290.
mysql> show variables like 'secure_file_priv';
+------------------+------------------------------------------------+
| Variable_name | Value |
+------------------+------------------------------------------------+
| secure_file_priv | C:\ProgramData\MySQL\MySQL Server 8.0\Uploads\ |
+------------------+------------------------------------------------+
1 row in set (0.01 sec)
mysql> load data infile "C:\ProgramData\MySQL\MySQL Server 8.0\Uploads\Book1"
into table sample fields terminated by ',';
ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option
so it cannot execute this statement
I've aready tried the below link but didn't work.
How can I load file data.