MySQL Forums
Forum List  »  Spanish

Re: Error Code: 1197. Multi-statement transaction required more than 'max_binlog_cache_size' bytes of storage; increase this mysqld variable and try again
Posted by: Jesús Uzcanga
Date: January 27, 2018 11:12PM

Maria, podrian existir muchas soluciones para muchas causas posibles a lo que indicas (muy poca informacion dek problema) sin embargo la causa mas cmun en estos casos es que el sistema esta intentando cargar los 100 millones de registros en memoria y despues hacer una sola escritura en disco duro, lo cual, obviamente se saldra de los límites.

Para un archivo sql es fácil ya que solo lo editas y cada 10.000 regitros insertas un COMMIT; y listo (el COMMIT; vuekca la momoria hacia el disco, la libera y comienza nuevamente). Pero con archivos planos de texto es un poco más tedioso.

Tenia guardado en mis favoritos el siguiente link que nunca probé pero que tiene mucho sentido porque básicamente hace lo mismo de segmentar y escribir en disco cada cierto tiempo para que nunca se llene completamente la memoria y te genere este o similares errores, espero que te ayude.

http://mechanics.flite.com/blog/2014/12/12/loading-large-flat-files-into-mysql-with-load-data-infile-and-pt-fifo-split/

___________________________
Ing. Jesús Alfredo Uzcanga
Twitter: @JesusUzcanga

We learn the 20% of what we HEAR,
the 50% of what we SEE,
the 80% of what we DO and
the 95% of what we TEACH.

____________________________________________________________
https://www.linkedin.com/in/jauzcanga/

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Error Code: 1197. Multi-statement transaction required more than 'max_binlog_cache_size' bytes of storage; increase this mysqld variable and try again
1221
January 27, 2018 11:12PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.