Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

563
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda