MYSQL:ERROR 1148: The used command is not allowed with this MySQL version

ERROR 1148: The used command is not allowed with this MySQL version

wKioL1bcHd3yzNXnAAAtEcWHPDg752.png

出现以上问题根据手册:

如果LOAD DATA LOCAL INFILE在服务器或客户端被禁用,试图执行该语句的客户端将收到下面的错误消息 ERROR 1148: The used command is not allowed with this MySQL version


查询解决方案:

wKioL1bcHlCTVafGAAAnA0xdWTY489.png

执行后没有输出,怀着激动的心查询数据库


MYSQL:ERROR 1148: The used command is not allowed with this MySQL version_第1张图片

果然数据存在了,这么搞还真管用


--local-infile=1    : 开启load功能



参考:

http://doc.mysql.cn/mysql5/refman-5.1-zh.html-chapter/database-administration.html#load-data-local

http://doc.mysql.cn/mysql5/refman-5.1-zh.html-chapter/sql-syntax.html#load-data

http://blog.csdn.net/a342374071/article/details/8068524

你可能感兴趣的:(mysql,load,Data)