# Alternative ways of uploading External Data loads without SET GLOBAL local\_infile = ‘ON’

**URL:** <https://community.open-emr.org/t/alternative-ways-of-uploading-external-data-loads-without-set-global-local-infile-on/22328>\
**Category:** Support\
**Tags:** database, installation\
**Created:** [March 30, 2024, 5:02pm UTC](https://community.open-emr.org/t/alternative-ways-of-uploading-external-data-loads-without-set-global-local-infile-on/22328 "2024-03-30T17:02:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mkm1971](https://community.open-emr.org/letter_avatar_proxy/v4/letter/m/51bf81/32.png) [@mkm1971](https://community.open-emr.org/u/mkm1971)\
**Post date:** [March 30, 2024, 5:02pm UTC](https://community.open-emr.org/t/alternative-ways-of-uploading-external-data-loads-without-set-global-local-infile-on/22328/1 "2024-03-30T17:02:45Z")

</div>

**Situation**  
Not able to install any Extenral Data loads due to restriction from the Hosting comapny as they are afraid of SQL injection attacks. Is their any way that we can upload the Extenral Data loads without enabling local\_infile

I tried to SET GLOBAL local\_infile = ‘ON’ but it kept asking for for a superadmin privlage, please note that they are not willing at all to enable it for me even if it was temporary.

I am not that expert in SQL database I only know the basic of it.  
**OpenEMR Version**  
I’m using OpenEMR version 7.0.2 hosting it via Cpanel Cloudbase linux

I would be much apprectied if somone can help me with this issue.

---

<div class="post-metadata">

**Author:** ![growlingflea](https://community.open-emr.org/user_avatar/community.open-emr.org/growlingflea/32/15498_2.png) [@growlingflea](https://community.open-emr.org/u/growlingflea)\
**Post date:** [March 30, 2024, 7:49pm UTC](https://community.open-emr.org/t/alternative-ways-of-uploading-external-data-loads-without-set-global-local-infile-on/22328/2 "2024-03-30T19:49:42Z")

</div>

It sounds like you might be working on a server that has shared hosting, otherwise you would have the admin privileges. Hosting PHI on a shared host breaks HIPAA rules and you are also unlikely to get a BAA with that hosting company which is required.

If you are running a clinic I recommend working with GCP. GCP can be cost effective and they offer BAA’s which are necessary for HIPAA compliance.

---

<div class="post-metadata">

**Author:** ![mkm1971](https://community.open-emr.org/letter_avatar_proxy/v4/letter/m/51bf81/32.png) [@mkm1971](https://community.open-emr.org/u/mkm1971)\
**Post date:** [March 31, 2024, 12:13am UTC](https://community.open-emr.org/t/alternative-ways-of-uploading-external-data-loads-without-set-global-local-infile-on/22328/3 "2024-03-31T00:13:22Z")

</div>

@growlingflea Thanks Daniel for your support we are testing openemr prior to luanching it to our main server.

I hope that in the next update they can atleast have altenrtives ways of uploading extenral data without SET GLOBAL local\_infile = ‘ON’

---

<div class="post-metadata">

**Author:** ![growlingflea](https://community.open-emr.org/user_avatar/community.open-emr.org/growlingflea/32/15498_2.png) [@growlingflea](https://community.open-emr.org/u/growlingflea)\
**Post date:** [April 1, 2024, 6:29pm UTC](https://community.open-emr.org/t/alternative-ways-of-uploading-external-data-loads-without-set-global-local-infile-on/22328/4 "2024-04-01T18:29:17Z")

</div>

The setting SET GLOBAL local\_infile = ‘ON’ is required by MySQL for importing large amounts of data since importing data line-by-line is tedious and not very efficient. This isn’t really an OpenEMR thing, its an MySQL thing that needs to be set.

By default, MySQL has this setting disabled for security reasons but this setting is required so we can import large files that OpenEMR needs (data related).

---

<div class="post-metadata">

**Author:** ![stephenwaite](https://community.open-emr.org/user_avatar/community.open-emr.org/stephenwaite/32/15754_2.png) [@stephenwaite](https://community.open-emr.org/u/stephenwaite)\
**Post date:** [April 1, 2024, 6:45pm UTC](https://community.open-emr.org/t/alternative-ways-of-uploading-external-data-loads-without-set-global-local-infile-on/22328/5 "2024-04-01T18:45:42Z")

</div>

ICD10 [doesn’t need local infile on](https://github.com/openemr/openemr/commit/1b1f687085b896e127fd0bbcad036446b3065b91#diff-eafd12ad7a5c4f92420cc29836b6860983b178354ed74940a28e88784b5fa73bL578) anymore.

---

<div class="post-metadata">

**Author:** ![mkm1971](https://community.open-emr.org/letter_avatar_proxy/v4/letter/m/51bf81/32.png) [@mkm1971](https://community.open-emr.org/u/mkm1971)\
**Post date:** [April 1, 2024, 8:20pm UTC](https://community.open-emr.org/t/alternative-ways-of-uploading-external-data-loads-without-set-global-local-infile-on/22328/6 "2024-04-01T20:20:43Z")

</div>

@stephenwaite Thanks for your kind support , the issue was with RXNORM and the other exernal data where it is mandated to enable local\_infile.
