首页 > 数据库技术 > 详细

MySQL ERROR : The used command is not allowed with this MySQL version 解决办法

时间:2015-04-06 17:05:02      阅读:196      评论:0      收藏:0      [点我收藏+]

目的:向MySql数据库导入.txt文件,通过load命令来实现

 

输入如下命令,报错:

技术分享

 

 

修改命令,依旧报错:

技术分享

 

可能原因(from mysql reference manual):

If LOAD DATA LOCALis disabled, either in the server or the client, a client that attempts to issue such a statement receives the fol-lowing error message:

ERROR 1148: The used command is not allowed with this MySQL version
可见,出于安全考虑,默认是不允许从client host远程通过load data命令导数据的
 
解决办法:

登录MySql时,需用--local-infile[=1]显式指定参数

技术分享

 

问题解决

 

MySQL ERROR : The used command is not allowed with this MySQL version 解决办法

原文:http://www.cnblogs.com/Murcielago/p/4396080.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!