Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

571
Views
Enable local-infile in Mysql on Docker

I have a docker container running mysql (current) which I started with

docker run --name=mysql1 -d mysql/mysql-server

I need to import some data but the default image doesn't enable local-infile.

I don't want to break the currently running db or take it down for long.

What are my options? Is it possible to apply the --local-infile switch to an already-running container?

Thanks

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

local_infile is a global dynamic variable. To change at runtime execute the SQL:

SET GLOBAL local_infile=1

The client side that connects need local_infile set on the connection. If using the mysql client there is a --local-infile=1 option there, other wise look in the connection options if using a language/other script.

If you wanted to permanently enable this, the local-infile=1 option should be in the a my.cnf file in the server under a server group like [mysqld].

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!