Enable LOAD DATA LOCAL INFILE in MySQL
Problem:
How to enable LOAD DATA LOCAL INFILE in the MySQL configuration file (my.cnf) for MySQL 5.5 on Ubuntu 12 LTS.
Solution:
To enable LOAD DATA LOCAL INFILE, you need to add the following option to the [mysql] section of your my.cnf file:
local-infile=1
Alternatively, you can call the MySQL client with the --local-infile选项:
mysql -local -infile -urot -pyourpwd yourdbnamemysql --local-infile -uroot -pyourpwd yourdbname
免责声明: 提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发到邮箱:[email protected] 我们会第一时间内为您处理。
Copyright© 2022 湘ICP备2022001581号-3