long2ice / asyncmy

A fast asyncio MySQL/MariaDB driver with replication protocol support
https://github.com/long2ice/asyncmy
Apache License 2.0
230 stars 25 forks source link

Using "LOAD DATA LOCAL INFILE" returns error #88

Open Timmy-Tenders opened 4 months ago

Timmy-Tenders commented 4 months ago

Hello,

Using LOAD DATA LOCAL INFILE returns a error even when local infile is enabled in the server. The returned error is 1148, 'The used command is not allowed with this MariaDB version. Perhaps local infile has to be enabled in the connection. I am currently using a pool.

Thanks,

PS

Placing local_infile=True when creating the connection pool generates a different error. The error is AttributeError: 'asyncmy.protocol.LoadLocalPacketWrapper' object has no attribute 'packet'