Python2.7 MySQL Connector Error on LOAD DATA LOCAL INFILE

后端 未结 4 811
我寻月下人不归
我寻月下人不归 2021-01-14 08:26

I\'m trying to dynamically load census data into a mysql database (from .csv files) using Python and MySQL Connector.

I can\'t figure out why I am getting the error

4条回答
  •  北荒
    北荒 (楼主)
    2021-01-14 08:29

    Add field allow_local_infile = "True" when you do mysql.connector.connect. It'll work

提交回复
热议问题