I already have a table in place which I'm trying to populate using the data from an external XML file. I'm using the LOAD XML INFILE
function for it, using the query below. However I'm getting a #1290 - The MySQL server is running with the --secure-file-priv option so it cannot execute this statement
and the query is unable to execute. Can anybody please enlighten me as to what needs to be done so that I can execute it?
Here's the query for reference.
LOAD XML INFILE 'C:\\Users\Shubham\Desktop\Part_Info.xml'
INTO TABLE dbtest.part_no
ROWS IDENTIFIED BY '<row>';