title: LOAD DATA LOCAL INFILE is forbidden
body: <p>this is my first question, I've searched around and tried a few things. I'm probably missing somethings very obvious.
  I'm using MAMP
  PHP version: 7.4.9
  Server version: 5.7.30 - MySQL Community Server (GPL)</p>
  <p>Here is my SQL</p>
  <pre><code>LOAD DATA LOCAL INFILE '/Applications/MAMP/htdocs/dsdb/OPENPO_01_ESP_20201118_090000.csv'
  INTO TABLE tbl_StockOnOrderReport_test
  FIELDS TERMINATED BY ';'
  LINES TERMINATED BY '\n'
  </code></pre>
  <p>And here is the error</p>
  <pre><code>#2000 - LOAD DATA LOCAL INFILE is forbidden, check mysqli.allow_local_infile
  </code></pre>
  <p>I have tried a few things,</p>
  <pre><code>SELECT @@GLOBAL.secure_file_priv;
  </code></pre>
  <p>gives this</p>
  <pre><code>@@GLOBAL.secure_file_priv
  NULL
  </code></pre>
  <p>I have Uncommented this line in PHP.ini</p>
  <pre><code>mysqli.allow_local_infile = On
  </code></pre>