MySQL Connector/Python Release Notes
The default value of the allow_local_infile option changed from True to False. (Bug #29260128)
allow_local_infile