MySQL LOAD DATA LOCAL INFILE not allowed over ODBC

前端 未结 1 913
天涯浪人
天涯浪人 2021-01-22 03:57

I am attempting to load a text file into a MySQL table. The error I receive is:

HY000 1148 [MySQL][ODBC 8.0(w) Driver][mysqld-5.6.39]The used command i

相关标签:
1条回答
  • 2021-01-22 04:35

    This issue turned out to be an ODBC connector issue.

    The version of the MySQL ODBC connector I was using was 8.0.11 which overrides the local-infile parameter and sets it to zero. In this version of the connector, the parameter was not editable (to my knowledge).

    As of version 8.0.14, the user can add the following line to the odbc.ini file:

    ENABLE_LOCAL_INFILE=1
    

    https://dev.mysql.com/doc/connector-odbc/en/connector-odbc-configuration-connection-parameters.html

    After upgrading to the new connector and updating odbc.ini, LOAD DATA LOCAL INFILE is successful when connecting via ODBC.

    0 讨论(0)
提交回复
热议问题