title: ERROR 2068 (HY000): LOAD DATA LOCAL INFILE file request rejected due to restrictions on access
body: <p>comment I'm trying ,</p>
  <pre><code>mysql&gt; 
  
  LOAD DATA LOCAL INFILE '/var/tmp/countries.csv' 
  INTO TABLE countries 
  FIELDS TERMINATED BY ',' 
  ENCLOSED BY '&quot;' LINES 
  TERMINATED BY '\n' 
  IGNORE 1 LINES 
  (CountryId,CountryCode,CountryDescription,CountryRegion,LastUpdatedDate,created_by,created_on)
  SET created_by = 'DH_INITIAL_LOAD', created_on = current_timestamp();
  </code></pre>
  <blockquote>
  <p>ERROR 2068 (HY000): LOAD DATA LOCAL INFILE file request rejected due to restrictions on access.`</p>
  </blockquote>
  <p>It was working fine, I downloaded pymysql and mysql connector for the python script. I uninstalled and checked still it is not working.
  The verion and infile is ON,</p>
  <pre><code> select version() -| 8.0.17
  
  
  
  mysql&gt; SHOW GLOBAL VARIABLES LIKE 'local_infile';
  +---------------+-------+
  | Variable_name | Value |
  +---------------+-------+
  | local_infile  | ON    |
  +---------------+-------+
  1 row in set (0.00 sec)
  </code></pre>