Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8462321
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T14:08:03+00:00 2026-06-10T14:08:03+00:00

I have a PHP script that calls MySQL’s LOAD DATA INFILE to load data

  • 0

I have a PHP script that calls MySQL’s LOAD DATA INFILE to load data from CSV files. However, on production server, I ended up with the following error:

Access denied for user … (using password: yes)

As a quick workaround, I changed the command to LOAD DATA LOCAL INFILE which worked. However, the same command failed on client’s server with this message:

The used command is not allowed with this MySQL version

I assume this has something to do with the server variable: local_infile = off as described here.

Please suggest a workaround that does not involve changing server settings. Note that phpMyAdmin utility installed on the same server appears to accept CSV files though I am not sure it it uses LOAD DATA (LOCAL) INFILE.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T14:08:05+00:00Added an answer on June 10, 2026 at 2:08 pm

    Ran into the same issue as root and threw me for a moment

    could be an issue with your server settings set with compile

    to test login to console with the same user and try your load data command

    if you get the same error, try closing console and running

    mysql -u USER -p --local-infile=1 DATABASE
    

    now try running load data command again

    if it works then you’re going to need to restart mysqld with command line option or re-install with configuration option

    references (references are for 5.0 but worked for me with 5.5):

    http://dev.mysql.com/doc/refman/5.0/en/load-data-local.html

    http://dev.mysql.com/doc/refman/5.0/en/mysql-command-options.html#option_mysql_local-infile

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a PHP script that produces a .CSV export file from a MySQL
I have a php script that takes hierarchical data from a mysql procedure and
I have a php script that inserts data from an Android app into a
In php I have a script, that I use mod_rewrite to redirect all calls
I have a URL that I need to call from a PHP script. The
I have a php script that grabs links from another website. I am storing
I have an AJAX request (using JQuery) that calls a PHP script which does
I have a html page that calls a php object to get some data
I have the following php script that allows me perform some calls to other
I have a php script that I've put together from examples on the internet.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.